Confirmed users
1,989
edits
(→Puppet) |
(→Puppet) |
||
| Line 19: | Line 19: | ||
source /builds/aws_manager/bin/activate | source /builds/aws_manager/bin/activate | ||
cd /builds/aws_manager | cd /builds/aws_manager | ||
#get an ip in the correct region | |||
ip=`python cloud-tools/scripts/free_ips.py -c cloud-tools/configs/buildbot-master -r us-west-2 -n1` | |||
# double-check that the IP address is not in use by some other machine | |||
host $ip | |||
# create a DNS entry | |||
# use full LDAP e.g. user@mozilla.com | |||
invtool A create --ip $ip --fqdn $host.dev.releng.use1.mozilla.com --private --description "bug $bug: loaner for $user" | |||
# create a DNS reverse-mapping (required for puppet certs to work properly) | |||
invtool PTR create --ip $ip --target $host.dev.releng.use1.mozilla.com --private --description "bug $bug: loaner for $user" | |||
sleep 20m # wait for DNS to propagate | |||
python cloud-tools/scripts/aws_create_instance.py -c cloud-tools/configs/buildbot-master -r us-west-2 -s aws-releng \ | python cloud-tools/scripts/aws_create_instance.py -c cloud-tools/configs/buildbot-master -r us-west-2 -s aws-releng \ | ||