Subversion Repositories camp_sysinfo_client_3

Rev

Rev 223 | Rev 225 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 223 Rev 224
Line 76... Line 76...
76
                  );
76
                  );
77
 
77
 
78
# hash to set up os specific rules. these override values in %install when a particular operating
78
# hash to set up os specific rules. these override values in %install when a particular operating
79
# system is detected.
79
# system is detected.
80
our %operatingSystems = (
80
our %operatingSystems = (
-
 
81
                  'configuration file' => '<confdir>/sysinfo-client.yaml',
81
                  'debian' => {
82
                  'debian' => {
82
                     'regex'  => '(debian|mx|devuan)',
83
                     'regex'  => '(debian|mx|devuan)',
83
                     'bindir' => '/opt/camp/sysinfo-client',
84
                     'bindir' => '/opt/camp/sysinfo-client',
84
                     'confdir' => '/etc/camp/sysinfo-client',
85
                     'confdir' => '/etc/camp/sysinfo-client',
85
                     'crontab' => 'ln -fs <bindir>/sysinfo-client /etc/cron.daily/sysinfo-client',
86
                     'crontab' => 'ln -fs <bindir>/sysinfo-client /etc/cron.daily/sysinfo-client',
Line 96... Line 97...
96
                     'regex' => 'freebsd',
97
                     'regex' => 'freebsd',
97
                     'bindir' => '/usr/local/opt/camp/sysinfo-client',
98
                     'bindir' => '/usr/local/opt/camp/sysinfo-client',
98
                     'confdir' => '/usr/local/etc/camp/sysinfo-client',
99
                     'confdir' => '/usr/local/etc/camp/sysinfo-client',
99
                     'crontab' => 'ln -fs <bindir>/sysinfo-client /etc/periodic/daily/sysinfo-client',
100
                     'crontab' => 'ln -fs <bindir>/sysinfo-client /etc/periodic/daily/sysinfo-client',
100
                     'modules' => '((bsd)|(unix)|(all))',
101
                     'modules' => '((bsd)|(unix)|(all))',
101
                    'default group' => 'wheel',
102
                     'default group' => 'wheel',
102
                    'default owner' => 'root',
103
                     'default owner' => 'root',
103
                  },
104
                  },
104
                  'opnsense' => {
105
                  'opnsense' => {
105
                     'fileexists' => '/conf/config.xml',
106
                     'fileexists' => '/conf/config.xml',
106
                     'bindir' => '/usr/local/opt/camp/sysinfo-client',
107
                     'bindir' => '/usr/local/opt/camp/sysinfo-client',
107
                     'confdir' => '/usr/local/etc/camp/sysinfo-client',
108
                     'confdir' => '/usr/local/etc/camp/sysinfo-client',
108
                     'modules' => '((bsd)|(unix)|(all))',
109
                     'modules' => '((bsd)|(unix)|(all))',
109
                    'default group' => 'wheel',
110
                     'default group' => 'wheel',
110
                    'default owner' => 'root',
111
                     'default owner' => 'root',
111
                    'files' => {
112
                     'files' => {
112
                              'actions_sysinfo.conf' => {
113
                              'actions_sysinfo.conf' => {
113
                                    'type' => 'file',
114
                                    'type' => 'file',
114
                                    'permission' => '755',
115
                                    'permission' => '755',
115
                                    'owner' => '<default owner>:<default group>',
116
                                    'owner' => '<default owner>:<default group>',
116
                                    'target' => '/usr/local/opnsense/service/conf/actions.d',
117
                                    'target' => '/usr/local/opnsense/service/conf/actions.d',