-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagent.yml
61 lines (54 loc) · 1.31 KB
/
agent.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
- name: Configure Puppet Agent 5.x
hosts: winefi.turbo.local
vars:
puppet_server: puppetserver.turbo.local
tasks:
- name: Install RPM GPG Keys
copy:
src: files/RPM-GPG-KEY-{{ item }}
dest: /etc/pki/rpm-gpg/RPM-GPG-KEY-{{ item }}
owner: root
group: root
mode: 0644
with_items:
- EPEL-7
- ius
- puppet5
- name: Import RPM GPG Keys
shell: rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-*
changed_when: "1 == 0"
- name: Install Repo files
copy:
src: files/{{ item }}.repo
dest: /etc/yum.repos.d/{{ item }}.repo
owner: root
group: root
mode: 0644
with_items:
- epel
- ius
- puppet5
- name: Install dependency packages
yum:
name: "{{ item }}"
state: installed
update_cache: True
with_items:
- git2u-gui
- git2u-gitk
- tig
- name: Install Puppet packages
yum:
name: "{{ item }}"
state: installed
update_cache: True
with_items:
- puppet-agent
- name: Deliver the puppet.conf config
template:
src: templates/puppet.conf.j2
dest: /etc/puppetlabs/puppet/puppet.conf
owner: root
group: root
mode: 0644