-
Notifications
You must be signed in to change notification settings - Fork 5
/
install-choria.sh
executable file
·86 lines (60 loc) · 1.58 KB
/
install-choria.sh
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/sh
set -e
FLAVOUR=$(cat /etc/packager.txt)
METHOD="apt"
case "${FLAVOUR?}" in
el7_64)
rpm -ivh http://yum.puppetlabs.com/puppet8-release-el-7.noarch.rpm
METHOD="yum"
;;
el8_64)
rpm -ivh http://yum.puppetlabs.com/puppet8-release-el-8.noarch.rpm
METHOD="yum"
;;
el9_64)
rpm -ivh http://yum.puppetlabs.com/puppet8-release-el-9.noarch.rpm
METHOD="yum"
;;
buster_64)
wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppet8-release-buster.deb
;;
bullseye_64)
wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppet8-release-bullseye.deb
;;
bionic_64)
wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppet8-release-bionic.deb
;;
focal_64)
wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppet8-release-focal.deb
;;
jammy_64)
wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppet8-release-jammy.deb
;;
noble_64)
wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppet8-release-noble.deb
;;
bookworm_64)
wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppet8-release-bookworm.deb
;;
*)
echo "Uknown test flavour '${FLAVOUR}'"
exit 1
;;
esac
case "${METHOD?}" in
yum)
yum -y install puppet-agent
;;
apt)
dpkg -i /tmp/puppet.deb
apt update
apt -yq install puppet-agent cron systemd
;;
*)
echo "Unknown install method '${METHOD}'"
exit 1
;;
esac
/opt/puppetlabs/bin/puppet module install choria/choria
/opt/puppetlabs/bin/puppet apply -e 'class{"choria": server => true, manage_service => false}'
choria buildinfo