Create a swap partition if needed for new servers

Add a script to  handle cloud servers with no swap. This can be
used before install_puppet when developers run it by hand, and
is called directly by launch_node. If the host has
no swap, create a swap partition from the ephemeral disk and use
the remainder on /opt.

Change-Id: Iac8bfe4924d8607ddbddc45312a51fe52eb4cdbc
This commit is contained in:
James E. Blair
2013-12-19 10:06:09 -08:00
committed by Clark Boylan
parent 259a08db2b
commit 2c8d19ab08
2 changed files with 49 additions and 0 deletions

View File

@@ -83,6 +83,10 @@ def bootstrap_server(server, admin_pass, key, cert, environment, name,
ssh_client.ssh('ping6 -c5 -Q 0x10 review.openstack.org '
'|| ping6 -c5 -Q 0x10 wiki.openstack.org')
ssh_client.scp(os.path.join(SCRIPT_DIR, '..', 'make_swap.sh'),
'make_swap.sh')
ssh_client.ssh('bash -x make_swap.sh')
ssh_client.scp(os.path.join(SCRIPT_DIR, '..', 'install_puppet.sh'),
'install_puppet.sh')
ssh_client.ssh('bash -x install_puppet.sh')