OpenSVC
1.8
  • Introduction
  • Contribute
  • Agent
  • Collector
  • Compliance
    • Concept
    • Collector compliance views
    • Designer
    • Usage
    • Remediation campaigns
    • Rulesets
    • Modules development
    • Modules lifecycle
    • Modules deployment
    • Compliance objects library
      • Individual objects
        • ansible_playbook
        • authkey
        • bios
        • cron
        • crontabentry
        • etcsystem
        • fileinc
        • fileinccom
        • fileprop
        • firmware
        • file
        • fs
        • group
        • group_membership
        • hosts
        • ini
        • keyval
        • linux.mpath
        • nodeconf
        • package
        • process
        • rc
        • remove_files
        • smfcfgs
        • sudoers
        • svcconf
        • self.signed.cert
        • symlink
        • sysctl
        • timectl
        • timedatectl
        • user
        • vuln
        • xinetd
        • zfs
        • zpool
        • zprop
      • Combining objects in modules
      • Variable substitution
    • Best practice
  • Knowledge base
  • HOWTOs
OpenSVC
  • Docs »
  • Compliance »
  • Compliance objects library »
  • symlink
  • View page source

symlink¶

Description¶

  • Verify symlink's existance.
  • The collector provides the format with wildcards.
  • The module replace the wildcards with contextual values.
  • In the 'fix' the symlink is created (and intermediate dirs if required).
  • There is no check or fix for target's existance.
  • There is no check or fix for mode or ownership of either symlink or target.

Example rule¶

{
    "target": "/tmp/bar",
    "symlink": "/tmp/foo"
}

Form definition¶

Desc: |
  A symfile rule, fed to the 'symlink' compliance object to create a Unix symbolic link.
Css: comp48

Outputs:
  -
    Dest: compliance variable
    Class: symlink
    Type: json
    Format: dict

Inputs:
  -
    Id: symlink
    Label: Symlink path
    DisplayModeLabel: symlink
    LabelCss: hd16
    Mandatory: Yes
    Help: The full path of the symbolic link to check or create.
    Type: string

  -
    Id: target
    Label: Target path
    DisplayModeLabel: target
    LabelCss: hd16
    Mandatory: Yes
    Help: The full path of the target file pointed by the symlink.
    Type: string
Next Previous

© Copyright 2017, OpenSVC SARL.