From 6b2350753c4676b826188e91269ef62cb7fe6021 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Thu, 27 Aug 2015 10:33:04 +0200 Subject: [PATCH] Add run_puppet top-level playbooks to apply puppet for services Rather than doing this in the boostrap roles, better to decouple and do it separately. --- run_puppet_on_gerrit.yml | 11 +++++++++++ run_puppet_on_jenkins.yml | 8 ++++++++ run_puppet_on_zuul.yml | 11 +++++++++++ 3 files changed, 30 insertions(+) create mode 100644 run_puppet_on_gerrit.yml create mode 100644 run_puppet_on_jenkins.yml create mode 100644 run_puppet_on_zuul.yml diff --git a/run_puppet_on_gerrit.yml b/run_puppet_on_gerrit.yml new file mode 100644 index 0000000..fffced1 --- /dev/null +++ b/run_puppet_on_gerrit.yml @@ -0,0 +1,11 @@ +--- +- hosts: meta-infra_type_gerrit + user: ubuntu + gather_facts: no + sudo: true + tasks: + name: Run Puppet to install Gerrit + tasks: + - puppet: + ignore_errors: yes + - service: name=apache2 state=started diff --git a/run_puppet_on_jenkins.yml b/run_puppet_on_jenkins.yml new file mode 100644 index 0000000..4c05d11 --- /dev/null +++ b/run_puppet_on_jenkins.yml @@ -0,0 +1,8 @@ +--- +- hosts: meta-infra_type_jenkins + user: ubuntu + sudo: true + tasks: + name: Run Puppet to install Jenkins + tasks: + - puppet: diff --git a/run_puppet_on_zuul.yml b/run_puppet_on_zuul.yml new file mode 100644 index 0000000..4517e7e --- /dev/null +++ b/run_puppet_on_zuul.yml @@ -0,0 +1,11 @@ +--- +- hosts: meta-infra_type_zuul + user: ubuntu + gather_facts: no + sudo: true + tasks: + name: Run Puppet to install Zuul + tasks: + - puppet: + ignore_errors: yes + - service: name=apache2 state=started