bundle agent __main__
{
vars:
"package"
string => ifelse( "redhat", "httpd",
"debian", "apache2"
Create a folder containing your overlay at the root of your cfbs project.
For example:
[root@hub local_deploy]# find . | grep -v git . ./overlay ./overlay/controls ./overlay/controls/def.cf
I’m currently using Org-roam to facilitate most new note creation.
Org-roam has a concept of “daily” files. I consider these are collections of nodes that the target location (especially the filename, at least in my case) based on the date.
I use dailies (org-roam-capture-today
) for:
- Recurring meeting notes
- Daily stand-ups
- Customer meetings
Use the YAML to generate output matching the following format:
scifi::isbn: 'isbn' with book_name: 'book_name' travel::isbn: 'isbn' with book_name: 'book_name'
Policy:
### Managed by CFEngine
$(sys.ipv4) is on $(sys.ip2iface[$(sys.ipv4)])
bundle agent __main__
{
Here are a few different ways to take ~”numbered” slist > {'1.txt','2.txt','3.txt'};~
and get a list where =.txt
is stripped from each element.
bundle agent __main__
{
vars:
"numbered" slist => {'1.txt','2.txt','3.txt'};
bundle agent main
{
methods: "guac";
}
bundle agent guac
{
classes:
"tomcat" expression => "guacamole";
bundle agent __main__
{
vars:
# Using in-line yaml
"my_yaml" data => parseyaml('
mykey: myvalue
domain:
name: example.com