76 Commits

Author SHA1 Message Date
Ricardo Carrillo Cruz
8bf9da6944 Move declaration of openstackci/openstackzuul user roles to admin clouds
Only admin can associate roles, so we need to run that from admin cloud.

Change-Id: I7229d85e5a35a2826ae06752b882b6cb54eadcbd
2016-09-30 12:05:22 +02:00
Ricardo Carrillo Cruz
f0fd6accf4 Declare openstackci-user-roles and openstackzuul-user-roles on Infracloud clouds
Change-Id: Ie5aa48b74bac4657391c6cc552d936662e5d0a2c
2016-09-30 11:46:22 +02:00
Ricardo Carrillo Cruz
7c297504f9 Fix openstackci/openstackzuul user roles profiles
I missed the user_roles resource key :/

Change-Id: Ifc86e6cf247e90d0975a62818a6d9bbd876fb416
2016-09-30 11:43:00 +02:00
Ricardo Carrillo Cruz
77b52538bf Rename infracloud-roles to admin-roles
Let's better continue using the pattern of naming profiles as
'<cloud i do stuff>-<subject>'.

Change-Id: I826bbc6b5ee3d8dc1833d8d432c02d7e54eb3c61
2016-09-30 11:27:19 +02:00
Ricardo Carrillo Cruz
d5d91d3be4 Add roles assignment for openstackci and openstackzuul user/projects
In the infracloud, the Member role is not created by default.
We created that with a previous change by adding it to the launcher.
Now we associate that role to the openstackci/openstackzuul user/projects,
so those users are members of their corresponding projects.

Change-Id: I9147b253c7f747f435c773932dc4a8aad1189799
2016-09-30 11:11:44 +02:00
Ricardo Carrillo Cruz
f1f577c8ff Create Member role on infracloud clouds
We need to create these roles, so we can associate users with projects.

Change-Id: I29af32c9b0f99c584b6ed76b346b1b117d05b277
Depends-On: I2df8503bb713827f0f04691c2f259dc9541c9c83
2016-09-28 21:33:50 +02:00
Ricardo Carrillo Cruz
3773cc78c7 Remove the mirror server resource from infracloud clouds
The servers are still currently created by launch-node, I'll revert
this commit when I put the pre/post create/delete actions per resource
on the launcher role.

Change-Id: I0a6401c9d783b9c3876ebb1f9c8b144f75d7abb2
2016-09-28 13:49:08 +02:00
Ricardo Carrillo Cruz
ddd48e73d3 Add resources to chocolate openstackzuul cloud
Change-Id: If557aaa587e4d65782cd124369f760dee29dd15f
2016-09-28 13:28:21 +02:00
Ricardo Carrillo Cruz
66d0b98d42 Add mirror to chocolate openstackci cloud
Change-Id: Idbe1c84e9f1ebd7f661e019634aa3ada5cc9c8a2
2016-09-28 12:15:17 +02:00
Ricardo Carrillo Cruz
f705daa827 Add chocolate openstackci launcher layouts
Change-Id: I72a88a35f8dbd29e2e81fff5279398cd85fe5d91
2016-09-28 11:18:18 +02:00
Ricardo Carrillo Cruz
8c38f31972 Add launcher layouts for chocolate admin cloud
Change-Id: Id732017a725fc0a7e05bd3f00fc1e2c34970fb62
2016-09-27 12:52:53 +02:00
Jenkins
7e54fde8bd Merge "Make strategy free default for all remote_puppet playbooks" 2016-09-21 10:57:30 +00:00
Ricardo Carrillo Cruz
92d7200a0e Move the clouds_layouts.yaml file
It was discussed with other members of the Infra team that this
file would be better place on the playbooks folder, since the
run_launcher is located there.

Change-Id: I752ee592d3ffd8be4fd4ad29dbf73df443f28674
2016-09-13 12:05:08 +02:00
Ricardo Carrillo Cruz
54b7bd0a33 Change west/east naming for vanilla/chocolate on set quotas playbook
Also remove the cacerts envvar, it has been put on the oscc clouds
so it is not needed anymore.

Change-Id: I688ff79d01fc09acc1c5ac62007741e30372891a
2016-09-01 10:46:15 +02:00
Ricardo Carrillo Cruz
99b28f7466 Rename attended_upgrades playbook to unattended_upgrades
It runs unattended upgrades, thus the filename should reflect
that.

Change-Id: I837f863e67b705d2ccea01ccfba2ce7850b229f0
2016-07-19 10:41:09 +02:00
Jenkins
d6299790b0 Merge "Playbook to run upgrades" 2016-07-19 08:38:38 +00:00
Spencer Krum
edc2f0e046 Playbook to run upgrades
This can be used to patch-on-demand software after security
vulnerabilities.

Change-Id: I18b85de45c6790cea259d7c639b3052d0cbffdac
2016-07-18 15:41:34 -07:00
Paul Belanger
a62b671ee7
Make strategy free default for all remote_puppet playbooks
Now that we've confirmed ansible-playbook works as expected, lets
enable the free strategy by default.

While playbooks with singles hosts will not benefit from this, we add
it to be consistent with our playbooks.

Change-Id: Ia6abdfaf5c122f88ead2272c8700e2c1f33c5449
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-07-13 16:53:31 -04:00
Paul Belanger
1e93aed83c
Use strategy free for git servers
In an effort to improve performance, switch out strategy[1] to free.
This will allow each ansible host to run until the end of the play as
fast as it can.

[1] http://docs.ansible.com/ansible/playbooks_strategies.html

Change-Id: I86588154b71e69399be930fc78be7c17f54fd9dd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-07-12 13:56:46 -04:00
Clark Boylan
24f6232183 Do not use async with zl restarter playbook
Running this playbook on the puppetmaster we consistently run into ssh
failures due to async reconnecting periodically and network issues
between hosts. We can address this by starting a single connection
without async and polling on that which appears to be the default
wait_for behavior. Testing of this seems to indicate it is more
reliable.

Change-Id: Iec72e2c0d099c0e28bc4b4b48608a03b3e66b4c0
2016-06-30 16:15:30 -07:00
Jenkins
3ee12cd671 Merge "Remove jjb playbook" 2016-06-30 20:41:32 +00:00
Paul Belanger
63597ec07d
Use root to restart our zuul-launcher service
Add support so we can run the playbook as non-root user.

Change-Id: I05af471417ba58a985c24dc0ea2c43f1c7e24a4b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-06-21 13:49:59 -04:00
Paul Belanger
c281951f12
Remove jjb playbook
We nolonger need it as we don't have jenkins masters any more.

Change-Id: I8117a6f4afb9f65a1400fad090594efd260c3bec
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-06-18 19:01:34 -04:00
Jenkins
3e64f01bf7 Merge "Add playbook to graceful restart zuul-launchers" 2016-06-18 19:38:40 +00:00
Paul Belanger
2e56b272e7
Add playbook to graceful restart zuul-launchers
We'll wait up to 3hr 10mins for zuul-launchers to shutdown.

Change-Id: I880748704b6cae5a25c21326d6374ac71f4c9e1a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-06-18 12:52:02 -04:00
James E. Blair
21ebdae7ff Remove jenkins playbooks and tools
Change-Id: Ida59078c8b4d8af5057fddbbfde7e3249b48839b
2016-06-15 15:00:40 -07:00
Ricardo Carrillo Cruz
8b9c9760c5 Add run_cloud_launcher playbook
This is the runner for the ansible cloud launcher role.

Change-Id: Iad9ce14905e89cb875c0cf92dfd8093c3a8d4e1c
Depends-On: Ia775598090471b80be75624a6a6a0649622799e8
2016-04-29 22:16:52 +02:00
Jenkins
e4c0d38df7 Merge "Add playbook to manage power state of ironic servers" 2016-04-18 18:40:50 +00:00
James E. Blair
380ed13d54 Don't pass URL to safe jenkins shutdown
We're already on the host, and this defaults to localhost, so this
is simpler and doesn't go through the apache proxy.

Change-Id: Iac1047dc0a482d21466ab062f3aa3b0ef9144f38
2016-04-15 14:29:23 -07:00
Jenkins
d2b23c3a43 Merge "Start namespacing ansible group_vars" 2016-03-27 17:38:41 +00:00
Yolanda Robla
5bab327c2d Add playbook to manage power state of ironic servers
The playbook accepts target and power_state as arguments.

Change-Id: I60abd75b3605098fbcca8bcf1b6406a886a5996a
2016-03-15 15:26:52 +01:00
Monty Taylor
e8e201cc75 Add a playbook and script for doing adhoc puppet
Running puppet remotely in an ad-hoc manner on disabled hosts is mildly
complex. To facilitate, have a wide open playbook that we always run
with --limit - and a shell script to help us type less.

Change-Id: I629072dcada38d0465d351b1b99828466405372f
2016-03-09 14:23:49 -06:00
Jenkins
cac1ae7c80 Merge "Set project quotas on east infra-cloud" 2016-02-26 06:08:42 +00:00
Yolanda Robla
ffcbfd0796 Fix in parameters to configure puppet
Change-Id: I39f4e49e7d22310a1f508d538c12a302f4c8e6e3
2016-02-25 22:22:54 +01:00
Jenkins
c837752f3f Merge "Instruct puppet to configure settings before applying" 2016-02-25 21:21:07 +00:00
Jenkins
a2e4c3a6c8 Merge "Set default secgroup rules for east" 2016-02-25 21:05:27 +00:00
Ricardo Carrillo Cruz
fa9b0719fd Set project quotas on east infra-cloud
Putting this upfront, as we have agreed to put infra-cloud east
in prod soon.

Change-Id: I370176e7ff7d0c9361f6db110a9a1c77bd06ce4d
2016-02-25 21:43:15 +01:00
Jenkins
6658ee2205 Merge "Fix project on set infracloud project quotas playbook" 2016-02-25 20:13:05 +00:00
Jenkins
c070992791 Merge "Create role and playbook to set default secgroup in infracloud" 2016-02-25 19:22:29 +00:00
Ricardo Carrillo Cruz
c102e59857 Set default secgroup rules for east
This is in preparation for the east infra-cloud rollout.

Change-Id: Ie083aa5866ba60c177f95b374bee781018946be8
2016-02-25 17:56:38 +01:00
Ricardo Carrillo Cruz
01fe551c9b Fix project on set infracloud project quotas playbook
This needs the admin project, instead of the jenkins project.

Change-Id: Iccc8a00adae5946e3cd7a2e8ba4bce3e991fd34d
2016-02-25 17:22:25 +01:00
Jenkins
c57170d238 Merge "Playbook for setting the infracloud jenkins project quotas" 2016-02-25 16:19:00 +00:00
Jenkins
d0d11e1333 Merge "Create set_hostname role and playbook" 2016-02-24 23:34:36 +00:00
Ricardo Carrillo Cruz
7e1baa120e Create role and playbook to set default secgroup in infracloud
We'll add another task on the play to run on east when it's in prod,
doing west now.

Change-Id: I1bddb8f3e6a577487fbee5c4b5344047b0619d94
2016-02-24 20:36:58 +01:00
Monty Taylor
a97a3d4c7a Start namespacing ansible group_vars
It's fine right now with 5, but over time if we keep a flat namespae,
which is not necessary, it's just going to get ugly.

Change-Id: I07a143f45f2eb100c231ea1b7dd617b40f8f231c
2016-02-24 11:57:32 -06:00
Ricardo Carrillo Cruz
7679a0bcb5 Playbook for setting the infracloud jenkins project quotas
We are only deploying West for now, so just doing West.
When we get East in production, we would update this playbook.
Unfortunate there is no Ansible module or Puppet resources to set
quotas per-project, thus using regular shell module in Ansible.

Change-Id: Ib884508bebedc9f88fac242711af98fc0c4d95ec
2016-02-24 18:43:42 +01:00
Monty Taylor
658b0958ff Configure the host to report to puppetdb as
We need to plumb through a configured host setting to report to puppetdb
as so that certs work.

Change-Id: I290ad569283390bac2a74a9991331c9e86821ab7
2016-02-24 11:38:10 -06:00
Ricardo Carrillo Cruz
be31fead2f Create set_hostname role and playbook
Turns out we have had many issues with random servers having
wrong hostname and /etc/hosts info.
This playbook/role allows to configure that by passing
-e "target=<hostname>" as ansible-playbook parameter.

Change-Id: I73939ebc65211a840bb41370c22b111112389716
2016-02-24 01:17:47 +01:00
Colleen Murphy
faa60d37d3 Add the baremetal hpuswest host to the ansible
Change-Id: I6018c4f3cec9693d2b4e633a43ef82028f2923e4
2016-02-23 11:49:19 -08:00
Yolanda Robla
c5b5ba2c42 Instruct puppet to configure settings before applying
In a clean deploy of infra cloud, the puppet environment
is not configured from scratch. That will prevent puppet to run
because it won't find the /opt/system-config/production/modules.

The config option of the ansible role will configure properly
all settings before trying to apply it, and things will work
properly.

Change-Id: I736e10623fb3ba90b3320cc20758a18c70930be0
Depends-On: I6cb8dff569f2cca8bca7359412d01cc7ec009c54
2016-02-18 15:43:33 +01:00