diff --git a/inventory/host_vars/fed-cloud10.cloud.fedoraproject.org b/inventory/host_vars/fed-cloud10.cloud.fedoraproject.org index e1424d8c66..7f9942faa4 100644 --- a/inventory/host_vars/fed-cloud10.cloud.fedoraproject.org +++ b/inventory/host_vars/fed-cloud10.cloud.fedoraproject.org @@ -7,3 +7,5 @@ eth0_ip: 209.132.184.10 eth1_ip: 172.23.0.10 nm: 255.255.255.0 gw: 209.132.184.254 + +compute_private_ip: 172.23.0.10 diff --git a/playbooks/hosts/fed-cloud09.cloud.fedoraproject.org.yml b/playbooks/hosts/fed-cloud09.cloud.fedoraproject.org.yml index f59c18d4cc..794fac4a0a 100644 --- a/playbooks/hosts/fed-cloud09.cloud.fedoraproject.org.yml +++ b/playbooks/hosts/fed-cloud09.cloud.fedoraproject.org.yml @@ -59,6 +59,7 @@ when: packstack_sucessfully_finished.stat.exists == False - lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-eth1 regexp="BOOTPROTO=" line="BOOTPROTO=none" - template: src={{files}}/fedora-cloud/ifcfg-br-ex dest=/etc/sysconfig/network-scripts/ifcfg-br-ex owner=root mode=0644 + when: packstack_sucessfully_finished.stat.exists == False # FIXME notify network service restart, eth1 must be up and configured # http://docs.openstack.org/trunk/install-guide/install/yum/content/basics-ntp.html diff --git a/playbooks/hosts/fed-cloud10.cloud.fedoraproject.org.yml b/playbooks/hosts/fed-cloud10.cloud.fedoraproject.org.yml index d6fdcd1de5..446270e6a5 100644 --- a/playbooks/hosts/fed-cloud10.cloud.fedoraproject.org.yml +++ b/playbooks/hosts/fed-cloud10.cloud.fedoraproject.org.yml @@ -31,27 +31,38 @@ - yum: state=present name=http://rdo.fedorapeople.org/rdo-release.rpm - # http://docs.openstack.org/icehouse/install-guide/install/yum/content/nova-controller.html + # http://docs.openstack.org/icehouse/install-guide/install/yum/content/nova-compute.html - name: install the Compute packages necessary for the controller node. action: yum state=present pkg={{ item }} with_items: - - openstack-nova-api - - openstack-nova-cert - - openstack-nova-conductor - - openstack-nova-console - - openstack-nova-novncproxy - - openstack-nova-scheduler + - openstack-nova-compute - python-novaclient - openstack-utils - - mariadb - name: Set up db connection to controller action: command openstack-config --set /etc/nova/nova.conf database connection mysql://nova:{{NOVA_DBPASS}}@{{controller_private_ip}}/nova - - name: Set these configuration keys to configure Compute to use the Qpid message broker - action: command openstack-config --set /etc/nova/nova.conf DEFAULT rpc_backend qpid + - command: openstack-config --set /etc/nova/nova.conf DEFAULT auth_strategy keystone + - command: openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_uri http://{{controller_private_ip}}:5000 + - command: openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_host {{controller_private_ip}} + - command: openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_protocol http + - command: openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_port 35357 + - command: openstack-config --set /etc/nova/nova.conf keystone_authtoken admin_user nova + - command: openstack-config --set /etc/nova/nova.conf keystone_authtoken admin_tenant_name service + - command: openstack-config --set /etc/nova/nova.conf keystone_authtoken admin_password {{NOVA_PASS}} + + - command: openstack-config --set /etc/nova/nova.conf DEFAULT rpc_backend qpid - command: openstack-config --set /etc/nova/nova.conf DEFAULT qpid_hostname {{controller_private_ip}} - - command: openstack-config --set /etc/nova/nova.conf DEFAULT my_ip {{controller_private_ip}} - - command: openstack-config --set /etc/nova/nova.conf DEFAULT vncserver_listen {{controller_private_ip}} - - command: openstack-config --set /etc/nova/nova.conf DEFAULT vncserver_proxyclient_address {{controller_private_ip}} + + - command: openstack-config --set /etc/nova/nova.conf DEFAULT my_ip {{compute_private_ip}} + - command: openstack-config --set /etc/nova/nova.conf DEFAULT vnc_enabled True + - command: openstack-config --set /etc/nova/nova.conf DEFAULT vncserver_listen 0.0.0.0 + - command: openstack-config --set /etc/nova/nova.conf DEFAULT vncserver_proxyclient_address {{compute_private_ip}} + - command: openstack-config --set /etc/nova/nova.conf DEFAULT novncproxy_base_url http://{{controller_private_ip}}:6080/vnc_auto.html + + - command: openstack-config --set /etc/nova/nova.conf DEFAULT glance_host {{controller_private_ip}} + + - service: name=libvirtd state=started enabled=yes + - service: name=messagebus state=started enabled=yes + - service: name=openstack-nova-compute state=started enabled=yes handlers: - include: "{{ handlers }}/restart_services.yml"