sorting out bundle sequence
[cfengine-masterfiles.git] / inputs / cf-serverd.cf
blobfca5d8a8185f13237901b81f3a8778dd528d14bd
1 #####################################
2 #                                   #
3 # cf-serverd.cf - Cfengine 3 Server #
4 #                                   #
5 #####################################
7 body server control {
8     allowconnects       => { "10.0.0.0/24" };
9     maxconnections      => "100";
10     logallconnections   => "true";
11     cfruncommand        => "$(sys.workdir)/bin/cf-agent";
12     allowusers          => { "root" };
15 # Make sure that the server is running on the policy servers
16 bundle agent server {
18 vars:
20     "init_d"    string => "/etc/init.d";
22 processes:
24     policy_servers::
26         "cf-serverd"
28             comment         => "Make sure cf-serverd run on the policy servers",
29             restart_class   => "start_cfserverd";
31 commands:
33     start_cfserverd::
35         "$(init_d)/cfengine3 start";
38 bundle server access_rules {
40 access:
42     # Allow clients access to the input files
43     "$(g.inputfiles)"
45         admit   => { "10.0.0.0/24" };
47     # Allow clients access to the masterfiles
48     "$(g.masterfiles)"
50         admit   => { "10.0.0.0/24" };