18 Commits

Author SHA1 Message Date
Monty Taylor
0bb4232586 Add base playbooks and roles to bootstrap a new server
We want to launch a new bastion host to run ansible on. Because we're
working on the transition to ansible, it seems like being able to do
that without needing puppet would be nice. This gets user management,
base repo setup and whatnot installed. It doesn't remove them from the
existing puppet, nor does it change the way we're calling anything that
currently exists.

Add bridge.openstack.org to the disabled group so that we don't try to
run puppet on it.

Change-Id: I3165423753009c639d9d2e2ed7d9adbe70360932
2018-08-01 14:57:44 -07:00
Monty Taylor
8a1d7a5ab6 Remove interpret_puppet_exitcodes
This is dead code now. The equivilent function is now in
openstack-infra/ansible-puppet

Change-Id: I7ba2f0b9da720b72a0a97b27a43a873b29c41ed8
2016-03-10 09:31:50 -06:00
Monty Taylor
f94594a98e Retire old launch-node.py
It has served us well, but it's time for the new world order to take
over.

Change-Id: I72a9f1b1c0f1bd331b5f862f5f69966950ffe963
2016-03-09 14:23:54 -06:00
Monty Taylor
e14471dcc6 Update for ansible and puppet apply
Shade supports all of the TODO items in here now, so use it. Also,
we have ansible playbooks that do the work of running puppet - and since
we're on puppet apply now, we can use them.

Change-Id: I6f57e9a31bf835ef2e22db1f5531d92e99806cf4
2016-03-09 14:23:54 -06:00
James E. Blair
387d4a2b6a Add a shade launch-node
Created as a new script so that we aren't hosed if this doesn't
work with current providers.

Change-Id: Ia8d35d0acbfb773ca710c9383d9b746e786766bc
Depends-On: I26bc94408441edf067493b7ffd50eebd9dd95e75
2016-01-21 11:45:41 -08:00
James E. Blair
3fc24b6b7f Add support for 'admin' user for OVH
OVH images have, of course, yet another 'root' user they would like
us to use instead of root.

Change-Id: If8cc3d31862e352eed40fc041a4c6c695a35063a
2015-09-16 10:32:17 -07:00
James E. Blair
e186820ca5 Handle OVH public ips in launch-node
This is a quick hack to handle public ip addrs on OVH.  A better
fix is porting to shade or ansible.

Change-Id: I62bba7215249521307be5b42af1c6f8fc886d982
2015-09-16 10:24:48 -07:00
Jenkins
d2254995b3 Merge "Improve network support in launch-node.py" 2014-10-23 19:31:48 +00:00
Monty Taylor
7a4e51d65e Add detailed-exitcodes to launch_node
We've got the logic elsewhere to properly deal with puppet bizarre exit
code strategy. Put it in launch_node too.

Change-Id: I4a414a27b58b2d4d890020f4b2aaed50f7c8f26b
2014-10-23 01:35:15 +00:00
Dmitry Teselkin
4c7c93252d Improve network support in launch-node.py
Currently launch-node.py doesn't allow to specify network label
and floating IP pool name, using the defaults from nova-network.

This patch allows to specify network label to attach instance to,
and floating IP pool from which floating IPs could be assigned.

Change-Id: I46024bc1c217f99f19717aeb04d424a01440203a
2014-10-20 17:55:11 +04:00
Monty Taylor
111c3609a9 Add a floating IP if needed
On HP, when we launch nodes, we need them to have a floating IP for us
to be able to connect to them.

Change-Id: I5c7ad3183d0b6329e2019a2c95968fcf3984618b
2014-09-05 18:05:29 +00:00
Monty Taylor
0fb121893d Remove salt
We don't really use the salt infrastructure that we set up, which means
it's cruft. Go ahead and admit that we don't use it and remove it from
our systems.

Change-Id: Ic43695719cbad30aded16ac480deb3dfd9b2a110
2014-07-04 21:44:44 -07:00
Christian Berendt
ddefc4d3fa Use except x as y instead of except x, y
According to https://docs.python.org/3/howto/pyporting.html the
syntax changed in Python 3.x. The new syntax is usable with
Python >= 2.6 and should be preferred to be compatible with Python3.

Enabled hacking check H231.

Change-Id: I4c20a04bc7732efc2d4bbcbc3d285107b244e5fa
2014-05-29 23:55:41 +02:00
Monty Taylor
eef4f76011 Clean up flake8 issues before switch
In anticipation of swtiching to flake8 as part of the removal of
pyflakes jobs, clean up a few flake8 errors so that we don't have to
ignore as many things.

Change-Id: Idb8466bb3194904d84e17dd3f2a7c32aff13788c
2013-09-20 14:37:30 -07:00
Robert Collins
49b0b0c78d Make third-party imports clearer in launch/.
This is a minor step towards PEP-8 as well, but mainly makes it easier
to document what third party modules are needed.

Change-Id: Id901ef437fcdeb11c8dd555e8db7c13daa86c4b2
2013-08-31 09:54:09 +12:00
David Boucha
e8862b1d1a Add functionality to create Salt keypairs
Create Salt key pair if needed
Move Salt key pair creation above bootstrap_server
Pre-seed Salt Minion keys
Use fqdn instead of cert name.
Set the Minion ID to be the fqdn
Logic improvements in add_salt_keypair
Use proper splitext, some suggested fixes
Remove minion_id definition. Let fqdn define minion id

Change-Id: I74e5ffb1a414ee61f1214332be34b5ed0fd26e95
Reviewed-on: https://review.openstack.org/26046
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Nicolas Simonds <nic@metacloud.com>
Reviewed-by: Anita Kuno <anita.kuno@enovance.com>
Reviewed-by: Matthew Sherborne <msherborne+openstack@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-04-11 23:45:00 +00:00
James E. Blair
8b04d362b5 Print DNS commands when launching a node.
Still not automatic, but much less typing.

Change-Id: I348b866db3f2778ba08a516a00d258358c4a9129
Reviewed-on: https://review.openstack.org/22468
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-02-22 00:19:25 +00:00
James E. Blair
745cc18290 Add a launch script.
Add a script to launch new OpenStack project servers.

Change-Id: I9f12ac0b7e38592128de1d6b999a5d540d621514
Reviewed-on: https://review.openstack.org/14246
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-10-13 16:49:55 +00:00