-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcfengine3.sh
More file actions
27 lines (24 loc) · 734 Bytes
/
cfengine3.sh
File metadata and controls
27 lines (24 loc) · 734 Bytes
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
POLICYHOST="1.2.3.4"
ENABLE_CLASSES="localDev,drupal7"
#
# Do you have a policyserver you never want to phone home to?
# If so, null route them
#
# sudo netstat -nr
# sudo ip route add blackhole ${POLICYHOST}
# sudo netstat -nr
#
# Do you need to move group.cf into place for workable tree?
# I do since my code trees arent completely portable.
#
# sudo cp \
# /var/cfengine/masterfiles/inputs/dcsunix/group.cf \
# /var/cfengine/inputs/group.cf
# sudo cp \
# /var/cfengine/masterfiles/inputs/core/failsafe.cf \
# /var/cfengine/inputs/failsafe.cf
#
# Run cf-agent twice, no locks, verbose, with poz-matched classes
#
sudo /var/cfengine/bin/cf-agent -Kv -D ${ENABLE_CLASSES}
sudo /var/cfengine/bin/cf-agent -Kv -D ${ENABLE_CLASSES}