This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# | |
# Administers version control (Subversion) for Cfengine 3 | |
# | |
################################################################################ | |
bundle agent cfgMgtVcs { | |
vars: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# | |
# Administers version control (Subversion) for Cfengine 3 | |
# | |
################################################################################ | |
bundle agent cfgMgtVcs { | |
vars: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# | |
# Administers version control (Subversion) for Cfengine 3 | |
# | |
################################################################################ | |
# If it does not exist, create an SVN repository $(repo) at $(path) as user | |
# $(user), and set up base dirs branches,tags,trunk. | |
bundle agent initializeSvnRepo(repo, path, user) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body volume checksize(size) | |
{ | |
sensible_size => "$(size)"; | |
} | |
<snip from bundle agent> | |
storage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle agent chkconfig_on(foo) { | |
classes: | |
"service_is_enabled" expression => returnszero("/usr/bin/chkconfig --level 3 $(foo)"); | |
commands: | |
!service_is_enabled:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#$Id$ | |
################################################################################ | |
# | |
# Set up clients to mount NFS shares on the filer with autofs | |
# | |
# NOTE: the cf2 version of nfsClient drove, with a file copy, the configuration | |
# of the nic for the storage network. Leaving that out now, since | |
# a) we should make that configuration reusable (the need for secondary nic | |
# management is broader than nfsClient); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
methods: | |
andwife:: | |
# TESTING | |
#"chkconfig_add_jgtest" | |
# usebundle => chkconfig_add("jgtest"); | |
#"chkconfig_on_jgtest" | |
# usebundle => chkconfig_on("jgtest"); | |
#"chkconfig_off_jgtest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@annyong init.d]# cat jgtest | |
#!/bin/sh | |
# chkconfig: 2345 55 25 | |
# description: Sendmail | |
# This file is under cfengine control. It lives on mrfrumble. | |
case "$1" in | |
start) | |
echo "Starting jgtest" | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ diff -C3 /var/cfengine/masterfiles/inputs/dcsunix/users.cf ./ | |
*** /var/cfengine/masterfiles/inputs/dcsunix/users.cf 2011-04-19 15:26:35.000000000 -0400 | |
--- ./users.cf 2011-05-02 15:21:53.000000000 -0400 | |
*************** | |
*** 17,23 **** | |
"dcsunixStaff" slist => { "@(var.dcsunixStaff)" }; | |
vm_cfgprdapp_01:: | |
! "users" slist => { "@(dcsunixStaff)", "unixsys" }; | |
# The cfsync user also needs to be in dcsunix, so we can automate syncing v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ diff -C3 /var/cfengine/masterfiles/inputs/dcsunix/users.cf ./ | |
*** /var/cfengine/masterfiles/inputs/dcsunix/users.cf 2011-04-19 15:26:35.000000000 -0400 | |
--- ./users.cf 2011-05-02 15:21:53.000000000 -0400 | |
*************** | |
*** 17,23 **** | |
"dcsunixStaff" slist => { "@(var.dcsunixStaff)" }; | |
vm_cfgprdapp_01:: | |
! "users" slist => { "@(dcsunixStaff)", "unixsys" }; | |
# The cfsync user also needs to be in dcsunix, so we can automate syncing v2 |
OlderNewer