Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

boxen::osx_defaults doesn't allow an empty string value #61

Closed
indirect opened this issue Jul 22, 2013 · 3 comments
Closed

boxen::osx_defaults doesn't allow an empty string value #61

indirect opened this issue Jul 22, 2013 · 3 comments

Comments

@indirect
Copy link
Contributor

With this manifest:

class osx::safari::homepage($page) {
  boxen::osx_defaults { 'Set the Default Safari Homepage':
    user   => $::boxen_user,
    domain => 'com.apple.Safari',
    key    => 'HomePage',
    value  => $page,
  }
}

class { 'osx::safari::homepage': page => "" }

I get this error:


Error: Cannot ensure present without domain, key, and value attributes at /opt/boxen/repo/shared/boxen/manifests/osx_defaults.pp:23 on node kogarashi.local
Error: Cannot ensure present without domain, key, and value attributes at /opt/boxen/repo/shared/boxen/manifests/osx_defaults.pp:23 on node kogarashi.local

😿

@wfarr
Copy link
Contributor

wfarr commented Jul 23, 2013

Interesting that Puppet considers this to be == undef.

/cc @jfryman

@kud
Copy link

kud commented Sep 23, 2013

How to override boxen settings about osx?

I've done:

class kud::security {
  boxen::osx_defaults { 'FIX: short delay for password dialog on screensaver':
    ensure => present,
    domain => 'com.apple.screensaver',
    key => 'askForPasswordDelay',
    value => 0,
    user => $::boxen_user
  }
}

and include it to the node default but i've got that:

Notice: /Stage[main]/Kud::Security/Boxen::Osx_defaults[FIX: short delay for password dialog on screensaver]/Exec[osx_defaults write  com.apple.screensaver:askForPasswordDelay=>0]/returns: executed successfully
Notice: /Stage[main]/Boxen::Security/Boxen::Osx_defaults[short delay for password dialog on screensaver]/Exec[osx_defaults write  com.apple.screensaver:askForPasswordDelay=>5]/returns: executed successfully

@seanknox
Copy link
Contributor

Closing this to due inactivity—feel free to re-open if it's still an issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants