Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

profiles with similar names conflict #11

Open
JDHatman opened this issue Feb 19, 2015 · 2 comments
Open

profiles with similar names conflict #11

JDHatman opened this issue Feb 19, 2015 · 2 comments

Comments

@JDHatman
Copy link

I have two profiles, one of which will be removed if the other is present. See the code below. "icloud_setup_disable_ys" is installed. Only that one. However, on each run it tries to remove "icloud_setup_disable" and fails because it can't find the profile.

mac_profiles_handler::manage {'icloud_setup_disable_ys':
ensure => present,
file_source => template('osx_management/icloud_setup_disable_ys.mobileconfig.erb'),
type => 'template',
}
mac_profiles_handler::manage {'icloud_setup_disable':
ensure => absent,
file_source => 'puppet:///modules/osx_management/icloud_setup_disable.mobileconfig',
}

@JDHatman
Copy link
Author

Here is the error message from the puppet run.

Error: Execution of '/usr/bin/profiles -R -p icloud_setup_disable' returned 1: profiles uninstall for identifier:'icloud_setup_disable' and user:'root' returned -205 (Unable to locate configuration profile.)
Error: /Stage[main]/Osx_management::Icloud_setup_disable/Mac_profiles_handler::Manage[icloud_setup_disable]/Profile_manager[icloud_setup_disable]/ensure: change from present to absent failed: Execution of '/usr/bin/profiles -R -p icloud_setup_disable' returned 1: profiles uninstall for identifier:'icloud_setup_disable' and user:'root' returned -205 (Unable to locate configuration profile.)

@JDHatman
Copy link
Author

I fixed by changing the def? exists query. I've submitted a pull request.

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

No branches or pull requests

1 participant