Merge "Update launch script and instructions"

This commit is contained in:
Jenkins 2014-06-10 20:01:15 +00:00 committed by Gerrit Code Review
commit adbfc09df0
2 changed files with 9 additions and 8 deletions

View File

@ -26,23 +26,23 @@ To launch a node in the OpenStack Jenkins account (slave nodes)::
. ~root/ci-launch/openstackjenkins-rs-nova.sh . ~root/ci-launch/openstackjenkins-rs-nova.sh
export FQDN=slavename.slave.openstack.org export FQDN=slavename.slave.openstack.org
nova image-list nova image-list
export IMAGE='Ubuntu 12.04 LTS (Precise Pangolin)' export IMAGE='Ubuntu 12.04 LTS (Precise Pangolin) (PVHVM)'
nova flavor-list nova flavor-list
export FLAVOR="8 GB Performance" export FLAVOR="8 GB Performance"
sudo puppet cert generate $FQDN sudo puppet cert generate $FQDN
./launch-node.py $FQDN --image "$IMAGE" --flavor "$FLAVOR" --salt ./launch-node.py $FQDN --image "$IMAGE" --flavor "$FLAVOR"
The --salt option tells the script to automatically configure and enroll There is also a --salt option which can be used to tell the script to
the server as a minion on the salt master. automatically configure and enroll the server as a minion on the salt
master.
If you are launching a replacement server, you may skip the generate If you are launching a replacement server, you may skip the generate
step and specify the name of an existing puppet cert (as long as the step and specify the name of an existing puppet cert (as long as the
private key is on this host). private key is on this host).
The server name and cert names may be different and the latter can be The server name and cert names may be different and the latter can be
specified with --cert if needed (older Jenkins slave types still use specified with --cert if needed, but launch-node.py will assume they
shared certs), but launch-node.py will assume they are the same unless are the same unless specified.
specified.
Manually add the hostname to DNS (the launch script does not do so Manually add the hostname to DNS (the launch script does not do so
automatically). Note that this example assumes you've already automatically). Note that this example assumes you've already

View File

@ -101,6 +101,7 @@ def bootstrap_server(server, admin_pass, key, cert, environment, name,
ssh_client.ssh("mkdir -p /var/lib/puppet/ssl/private_keys") ssh_client.ssh("mkdir -p /var/lib/puppet/ssl/private_keys")
ssh_client.ssh("mkdir -p /var/lib/puppet/ssl/public_keys") ssh_client.ssh("mkdir -p /var/lib/puppet/ssl/public_keys")
ssh_client.ssh("chown -R puppet:root /var/lib/puppet/ssl") ssh_client.ssh("chown -R puppet:root /var/lib/puppet/ssl")
ssh_client.ssh("chown -R puppet:puppet /var/lib/puppet/ssl/private_keys")
ssh_client.ssh("chmod 0771 /var/lib/puppet/ssl") ssh_client.ssh("chmod 0771 /var/lib/puppet/ssl")
ssh_client.ssh("chmod 0755 /var/lib/puppet/ssl/certs") ssh_client.ssh("chmod 0755 /var/lib/puppet/ssl/certs")
ssh_client.ssh("chmod 0750 /var/lib/puppet/ssl/private_keys") ssh_client.ssh("chmod 0750 /var/lib/puppet/ssl/private_keys")
@ -188,7 +189,7 @@ def main():
parser.add_argument("--flavor", dest="flavor", default='1GB', parser.add_argument("--flavor", dest="flavor", default='1GB',
help="name (or substring) of flavor") help="name (or substring) of flavor")
parser.add_argument("--image", dest="image", parser.add_argument("--image", dest="image",
default="Ubuntu 12.04 LTS (Precise Pangolin)", default="Ubuntu 12.04 LTS (Precise Pangolin) (PVHVM)",
help="image name") help="image name")
parser.add_argument("--environment", dest="environment", parser.add_argument("--environment", dest="environment",
default="production", default="production",