File: cfe_internal_local_git_remote.cf

package info (click to toggle)
cfengine3 3.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 20,256 kB
  • ctags: 9,613
  • sloc: ansic: 116,129; sh: 12,366; yacc: 1,088; makefile: 1,006; lex: 391; perl: 197; xml: 21; sed: 4
file content (34 lines) | stat: -rw-r--r-- 1,281 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
bundle agent cfe_internal_local_git_remote
{
  files:
      "$(update_def.local_masterfiles_git)/."
      handle => "cfe_internal_local_git_remote_files_have_local_git_remote_masterfiles_git_perms",
      perms => u_cfe_internal_mog($(update_def.masterfiles_perms_mode),
                                  $(update_def.cf_apache_user),
                                  $(update_def.cf_apache_group)),
      depth_search => u_cfe_internal_recurse("inf"),
      comment => "
Apache needs the ability to write to this repository in order to
support sketch activation deployments from Mission Portal",
      classes => u_if_else("did_perms_local_git_remote_clone",
                           "failed_perms_local_git_remote_clone");

  reports:
    inform_mode.did_perms_local_git_remote_clone::
      "$(this.bundle): set the permissions of the Git clone $(update_def.local_masterfiles_git)";
    inform_mode.failed_perms_local_git_remote_clone::
      "$(this.bundle): failed to set the permissions of the Git clone $(update_def.local_masterfiles_git)";
}

body depth_search u_cfe_internal_recurse(d)
{
  depth => "$(d)";
  xdev => "true";
}

body perms u_cfe_internal_mog(mode,user,group)
{
      owners => { "$(user)" };
      groups => { "$(group)" };
      mode   => "$(mode)";
}