From 7679a0bcb57e7fde5aeb036dc32ad4816522d67a Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com> Date: Tue, 23 Feb 2016 22:42:00 +0100 Subject: [PATCH] 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 --- playbooks/set_infracloud_project_quotas.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 playbooks/set_infracloud_project_quotas.yml diff --git a/playbooks/set_infracloud_project_quotas.yml b/playbooks/set_infracloud_project_quotas.yml new file mode 100644 index 0000000000..240f1605ef --- /dev/null +++ b/playbooks/set_infracloud_project_quotas.yml @@ -0,0 +1,9 @@ +--- +- hosts: localhost + connection: local + gather_facts: false + tasks: + - shell: 'openstack quota set openstackjenkins --cores 800 --ram 800000 --instances 100' + environment: + REQUESTS_CA_BUNDLE: '/etc/openstack/infracloud_west_cacert.pem' + OS_CLOUD: openstackjenkins-infracloud-west