Skip to content

Repeat runs #2

@JDHatman

Description

@JDHatman

Hello. I use mac-defaults to manage several values. I have an entry that tries to reapply that manifest on each puppet run. All the rest of my entries only apply once unless changed. This is the first time I've tried an array.

Non-working example (This will apply on every puppet run)
mac-defaults { "additionalhttpheaders":
domain => '/Library/Preferences/ManagedInstalls',
key => 'AdditionalHttpHeaders',
type => 'array',
value => "Authorization: Basic XXXXXXXXXXXXXXXX",

Working examples (These will only apply once unless changed).
mac-defaults { "softwarerepourl":
domain => '/Library/Preferences/ManagedInstalls',
key => 'SoftwareRepoURL',
type => 'string',
value => "http://munkiserver1.orchard.fruit.com/munki_repo",

mac-defaults { "installapplesoftwareupdates":
domain => '/Library/Preferences/ManagedInstalls',
key => 'InstallAppleSoftwareUpdates',
type => 'bool',
value => "true",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions