Add provisioning with packstack to the Vagrantfile
Change-Id: I3d0b6da7c3ced8152656fec5854c233e2ec3c673
This commit is contained in:
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@@ -105,6 +105,6 @@ Vagrant.configure(2) do |config|
|
|||||||
end
|
end
|
||||||
add_block_device(node, 1, CONFIG['resources']['storage'])
|
add_block_device(node, 1, CONFIG['resources']['storage'])
|
||||||
add_block_device(node, 2, CONFIG['resources']['storage'])
|
add_block_device(node, 2, CONFIG['resources']['storage'])
|
||||||
node.vm.provision 'shell', path: 'files/initialize.sh', privileged: false
|
node.vm.provision 'shell', path: 'scripts/initialize.sh', privileged: false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@@ -5,28 +5,15 @@ Initialization
|
|||||||
|
|
||||||
$ vagrant up
|
$ vagrant up
|
||||||
|
|
||||||
Afterwards run the following command on the controller node as the
|
|
||||||
unprivileged user ``vagrant`` (``vagrant ssh controller``)
|
|
||||||
to deploy OpenStack with Packstack.
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
$ packstack --answer-file packstack.answers
|
|
||||||
|
|
||||||
Run ``packstack`` with ``--debug`` to enable debug logging.
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
$ packstack --debug --answer-file packstack.answers
|
|
||||||
|
|
||||||
- The installation log file is available at:
|
- The installation log file is available at:
|
||||||
``/var/tmp/packstack/YYMMDD-HHMMSS-abcdef/openstack-setup.log``
|
``/var/tmp/packstack/YYMMDD-HHMMSS-abcdef/openstack-setup.log``
|
||||||
- The generated manifests are available at:
|
- The generated manifests are available at:
|
||||||
``/var/tmp/packstack/YYMMDD-HHMMSS-abcdef/manifests``
|
``/var/tmp/packstack/YYMMDD-HHMMSS-abcdef/manifests``
|
||||||
|
|
||||||
Finally (optional) you can run the ``setup.sh`` script after the successful
|
After the successful deployment you can run the ``setup.sh`` script
|
||||||
deployment to add cloud images etc. pp.
|
on the controller node as the unprivileged user ``vagrant``
|
||||||
|
(``vagrant ssh controller``) to add cloud images etc. pp.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
$ ./scripts/setup.sh
|
$ /home/vagrant/scripts/setup.sh
|
||||||
|
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# https://openstack.redhat.com/Quickstart
|
|
||||||
|
|
||||||
packstack --answer-file=packstack.answers
|
|
@@ -16,3 +16,5 @@ for node in $(sed -n '/<<< Packstack >>>/{:a;n;/>>> Packstack <<</b;p;ba}' /etc/
|
|||||||
ssh -i $HOME/.ssh/id_packstack $node "sudo cp /home/vagrant/.ssh/* /root/.ssh"
|
ssh -i $HOME/.ssh/id_packstack $node "sudo cp /home/vagrant/.ssh/* /root/.ssh"
|
||||||
ssh -i $HOME/.ssh/id_packstack $node "sudo chown -R root:root /root/.ssh"
|
ssh -i $HOME/.ssh/id_packstack $node "sudo chown -R root:root /root/.ssh"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
packstack --answer-file /home/vagrant/packstack.answers
|
Reference in New Issue
Block a user