This file contains hidden or 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
| neil@ettin ~/.cfagent/inputs $ cat equalto.cf | |
| body common control | |
| { | |
| bundlesequence => { | |
| "main", | |
| }; | |
| } | |
| bundle agent main | |
| { |
This file contains hidden or 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 common control | |
| { | |
| bundlesequence => { "main", }; | |
| } | |
| bundle agent main | |
| { | |
| vars: | |
| 'packages' string => " | |
| any ;; nano ;; install |
This file contains hidden or 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
| <capabilities> | |
| <host> | |
| <uuid>scrubbed</uuid> | |
| <cpu> | |
| <arch>x86_64</arch> | |
| <model>SandyBridge</model> | |
| <vendor>Intel</vendor> | |
| <topology sockets='1' cores='4' threads='2'/> | |
| <feature name='invtsc'/> |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use feature qw/say/; | |
| use Pod::Usage; | |
| use Data::Dumper; # TODO safe to remove after testing. | |
| my $VERSION = 0.01; |
This file contains hidden or 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 common control | |
| { | |
| bundlesequence => { | |
| "main", | |
| }; | |
| } | |
| bundle agent main | |
| { | |
| vars: |
This file contains hidden or 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
| vm.swappiness = 67 | |
| cd test/masterfiles; cf-agent -Kf ./promises.cf -D 019_efl_test | |
| cd test/serverspec; rspec spec/localhost/019_efl_test_spec.rb | |
| . | |
| Finished in 0.04985 seconds | |
| 1 example, 0 failures | |
| /sbin/sysctl vm.swappiness='60' | |
| vm.swappiness = 60 |
This file contains hidden or 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 file_select dirs_by_name( name ) | |
| { | |
| # Notice that names is a list, do not pass a string! | |
| leaf_name => { @{names} }; | |
| file_types => { "dir" }; | |
| file_result => "leaf_name.file_types"; | |
| } |
This file contains hidden or 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
| 2015-01-05T10:42:29-0500 critical: /default/efl_server_json/access/'/opt/delta_reporting/bin/dhlogmaker'[0]: StrList_Append: Success |
This file contains hidden or 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
| The order is mixed up | |
| body common control | |
| { | |
| bundlesequence => { "efl_c", "init", "array", "data" }; | |
| } | |
| bundle common efl_c | |
| { | |
| vars: |
This file contains hidden or 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
| ## Installation | |
| 1. Copy the contents of masterfiles into your masterfiles or equivilant repository. | |
| 1. Include all EFL .cf files in your inputs list in the common control body. Example: | |
| ``` | |
| bundle common efl_lib | |
| { | |
| vars: | |
| cfengine_3_6:: |