Last active
August 29, 2015 13:56
-
-
Save arrfab/8842140 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: infra | |
vars: | |
- foreman_db_type: mysql #can be sqlite/mysql/postgresql | |
tasks: | |
- name: Installing other repositories | |
yum: pkg={{ item }} state=installed | |
with_items: | |
- http://fedora.cu.be/epel//6/x86_64/epel-release-6-8.noarch.rpm | |
- http://yum.theforeman.org/releases/1.4/el6/x86_64/foreman-release.rpm | |
- name: Installing puppetmasterd | |
yum: pkg={{ item }} state=installed | |
with_items: | |
- puppet-server | |
- git | |
- centos-release-SCL | |
- name: Installing foreman-installer cli | |
yum: pkg=foreman-installer state=installed | |
- name: Installing SCL utils | |
yum: pkg=scl-utils state=installed | |
- name: Setting up foreman with foreman-installer | |
shell: /usr/sbin/foreman-installer creates=/usr/sbin/foreman | |
- name: Fetching additional Foreman plugins | |
yum: pkg={{ item }} state=installed | |
with_items: | |
- ruby193-rubygem-foreman_default_hostgroup | |
notify: | |
- restart_foreman | |
handlers: | |
- name: restart_foreman | |
service: name=foreman state=restarted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment