ISO version: http://paste.openstack.org/show/483967/
Steps:
1. Create config file controller.yaml: http://paste.openstack.org/show/483968/ and mongo.yaml: http://paste.openstack.org/show/483966/
2. Upload config for controller and mongo roles:
fuel openstack-config --role controller --env 1 --upload --file controller.yaml fuel openstack-config --role mongo --env 1 --upload --file mongo.yaml
3. List configs:
[root@nailgun ~]# fuel openstack-config --list --env 1 id | is_active | config_type | cluster_id | node_id | node_role ---|-----------|-------------|------------|---------|----------- 4 | True | role | 1 | None | mongo 5 | True | role | 1 | None | controller
3. Execute config on node with this 2 roles:
[root@nailgun ~]# date Fri Jan 15 07:40:19 UTC 2016 [root@nailgun ~]# fuel openstack-config --execute --env 1 --node 1
4. Wait when deployemnt task will be finished and check hiere on that node:
root@node-1:~# cat /etc/hiera/override/configuration/role.yaml configuration: nova_config: DEFAULT/debug: {value: true} root@node-1:~#
Here we can see that only second config was applied. In Nova.conf only first parameter was changed
ISO version: http:// paste.openstack .org/show/ 483967/
Steps:
1. Create config file controller.yaml: http:// paste.openstack .org/show/ 483968/ and mongo.yaml: http:// paste.openstack .org/show/ 483966/
2. Upload config for controller and mongo roles:
fuel openstack-config --role controller --env 1 --upload --file controller.yaml
fuel openstack-config --role mongo --env 1 --upload --file mongo.yaml
3. List configs:
[root@nailgun ~]# fuel openstack-config --list --env 1 |------ -----|- ------- -----|- ------- ----|-- ------- |------ -----
id | is_active | config_type | cluster_id | node_id | node_role
---
4 | True | role | 1 | None | mongo
5 | True | role | 1 | None | controller
3. Execute config on node with this 2 roles:
[root@nailgun ~]# date
Fri Jan 15 07:40:19 UTC 2016
[root@nailgun ~]# fuel openstack-config --execute --env 1 --node 1
4. Wait when deployemnt task will be finished and check hiere on that node:
root@node-1:~# cat /etc/hiera/ override/ configuration/ role.yaml
configuration:
nova_config:
DEFAULT/debug: {value: true}
root@node-1:~#
Here we can see that only second config was applied. In Nova.conf only first parameter was changed