Skip to content

Instantly share code, notes, and snippets.

@arrfab
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arrfab/8842140 to your computer and use it in GitHub Desktop.
Save arrfab/8842140 to your computer and use it in GitHub Desktop.
- 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