Random CFEngine test promises written for my home lab
This branch is for testing CFEngine 3.7.x
Added an OpenLDAP based External Node Classification module. Take a look at promise.cf to know how I raise classes based on node's roles.
extract_raise_classes This uses query-enc.py to query LDAP server for roles of the host node. (To be run once in 25-30 mins, due to it's being costly in execution), it then writes to /etc/cfe.d/roles_classes with classes following CFEngine's module protocol. At any time, if it fails to query LDAP, the old /etc/roles_classes is kept as it is.
raise_classes It just cat's /etc/roles_classes. This is done during every cf-agent run of course.
Mustache Template my_repo.cf, my_ntp.cf, my_resolv_conf.cf etc. promises make use of the new Mustache Templates. It's awesome and easy!!
my_autofs.cf
Policy for autofs, used for auto mounting of user home dirmy_dns.cf
Policy to configure master name server using bindmy_user.cf
Automates local user creation as well as adding sudo privilegemy_ssh.cf
Configures SSH service with "UseDNS no"my_package.cf
Basic packages required for troubleshooting etc.my_repo.cf
Configures yum repositoriesmy_freespace.cf
Checks and alerts for free spaces in /, /var, /tmp on an hourly basismy_services.cf
Policy to have a check on the basic servicesmy_test.cf
Random test policymy_env.cf
Test policy for maintaining an updated Ruby environmentmy_update_cfe.cf
Updates CFEngine automatically to the latest version (without much hassle)my_resolv.cf
Builds /etc/resolv.confmy_log.cf
Changes permission on various log files so normal users can read themmy_ntp.cf
Configures ntpd and timezone, uses mustache template to produce the ntp.conf filemy_database.cf
Installs mysql-server and creates a sample DB and Tablemy_motd.cf
Creates /etc/motd from a mustache template with verbose host informationmy_monitoring.cf
Zabbix monitoring agent configurationmy_docker.cf
Docker configuration policymy_managee_mps.cf
Manages master policy server, right now it installs and configures OpenLDAP based External Node Classifier system ... and many more