-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsamutev.conf.template
168 lines (154 loc) · 5.62 KB
/
samutev.conf.template
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
salt_base=""
my_ssh_pub_key=""
DEFAULT_GCP_ZONE="europe-west4-a"
FALLBACK_GCP_MACH_TYPE="e2-micro"
# --------------------------------------------------
# --------------------------------------------------
CLOUDINIT_1_header="
#cloud-config
# see docu: https://cloudinit.readthedocs.io/en/latest/topics/examples.html
locale: en_US.UTF-8
keyboard:
layout: de
variant: de
apt:
sources:
saltrepokey:
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGPazmABDAC6qc2st6/Uh/5AL325OB5+Z1XMFM2HhQNjB/VcYbLvcCx9AXsU
eaEmNPm6OY3p5+j8omjpXPYSU7DUQ0lIutuAtwkDMROH7uH/r9IY7iu88S6w3q89
bgbnqhu4mrSik2RNH2NqEiJkylz5rwj4F387y+UGH3aXIGryr+Lux9WxfqoRRX7J
WCf6KOaduLSp9lF4qdpAb4/Z5yExXtQRA9HULSJZqNVhfhWInTkVPw+vUo/P9AYv
mJVv6HRNlTb4HCnl6AZGcAYv66J7iWukavmYKxuIbdn4gBJwE0shU9SaP70dh/LT
WqIUuGRZBVH/LCuVGzglGYDh2iiOvR7YRMKf26/9xlR0SpeU/B1g6tRu3p+7OgjA
vJFws+bGSPed07asam3mRZ0Y9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Do7MqS
uANZMaoqhvnGazt9n435GQkYRvtqmqmOvt8I4oCzV0Y39HfbCHhhy64HSIowKYE7
YWIujJcfoIDQqq2378T631BxLEUPaoSOV4B8gk/Jbf3KVu4LNqJive7chR8F1C2k
eeAKpaf2CSAe7OrbAfWysHRZ060bSJzRk3COEACk/UURY+RlIwh+LQxEKb1YQueS
YGjxIjV1X7ScyOvam5CmqOd4do9psOS7MHcQNeUbhnjm0TyGT9DF8ELoE0NSYa+J
PvDGHo51M33s31RUO4TtJnU5xSRb2sOKzIuBABEBAAGJAbYEGAEIACAWIQQQhX/9
0/kerld6IdZky7yBc9drPwUCY9rOYAIbDAAKCRBky7yBc9drP8ctC/9wGi01cBAW
BPEKEnfrKdvlsaLeRxotriupDqGSWxqVxBVd+n0Xs0zPB/kuZFTkHOHpbAWkhPr+
hP+RJemxCKMCo7kT2FXVR1OYej8Vh+aYWZ5lw6dJGtgo3Ebib2VSKdasmIOI2CY/
03G46jv05qK3fP6phz+RaX+9hHgh1XW9kKbdkX5lM9RQSZOof3/67IN8w+euy61O
UhNcrsDKrp0kZxw3S+b/02oP1qADXHz2BUerkCZa4RVK1pM0UfRUooOHiEdUxKKM
DE501hwQsMH7WuvlIR8Oc2UGkEtzgukhmhpQPSsVPg54y9US+LkpztM+yq+zRu33
gAfssli0MvSmkbcTDD22PGbgPMseyYxfw7vuwmjdqvi9Z4jdln2gyZ6sSZdgUMYW
PGEjZDoMzsZx9Zx6SO9XCS7XgYHVc8/B2LGSxj+rpZ6lBbywH88lNnrm/SpQB74U
4QVLffuw76FanTH6advqdWIqtlWPoAQcEkKf5CdmfT2ei2wX1QLatTs=
=ZKPF
-----END PGP PUBLIC KEY BLOCK-----
salt.list:
source: |
deb [ arch=amd64 ] https://repo.saltproject.io/salt/py3/ubuntu/VERSION_ID/amd64/latest VERSION_CODENAME main
geoip: false
package_update: true
package_upgrade: false
"
# --------------------------------------------------
CLOUDINIT_2_master="
packages:
- salt-master
- nfs-common
write_files:
- content: |
fileserver_backend:
- roots
file_roots:
base:
- /srv/salt/salt-states
- /srv/salt/localstore
pillar_roots:
base:
- /srv/salt/salt-dev-pillars
- /srv/salt/salt-pillars
path: /etc/salt/master.d/master.conf
"
CLOUDINIT_2_masterless="
packages:
- salt-minion
- nfs-common
write_files:
- content: |
file_client: local
fileserver_backend:
- roots
file_roots:
base:
- /srv/salt/salt-states
- /srv/salt/localstore
pillar_roots:
base:
- /srv/salt/salt-dev-pillars
- /srv/salt/salt-pillars
path: /etc/salt/minion.d/masterless_minion.conf
"
# --------------------------------------------------
CLOUDINIT_2_minion="
packages:
- salt-minion
write_files:
- content: |
master: xxxIPxxx
state_output: changes_id
path: /etc/salt/minion.d/master.conf
"
# --------------------------------------------------
CLOUDINIT_3_user="
# Add groups to the system
# The following example adds the ubuntu group with members 'root' and 'sys'
# and the empty group cloud-users.
#groups:
# - ubuntu: [root,sys]
# - cloud-users
# Add users to the system. Users are added after groups are added.
# Note: Most of these configuration options will not be honored if the user
# already exists. Following options are the exceptions and they are
# applicable on already-existing users:
# - 'plain_text_passwd', 'hashed_passwd', 'lock_passwd', 'sudo',
# 'ssh_authorized_keys', 'ssh_redirect_user'.
users:
- default
- name: user
gecos: normal user with sudo right and ssh authorized keys
primary_group: user
groups: users, admin
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: false
shell: /bin/bash
ssh_authorized_keys:
- $my_ssh_pub_key
- name: root
ssh_authorized_keys:
- $my_ssh_pub_key
"
# --------------------------------------------------
DEVPILLARS_top="
base:
'*':
- devpillars
"
# --------------------------------------------------
DEVPILLARS="
test:
pillar:
key: "testvalue"
"
# --------------------------------------------------