-
Notifications
You must be signed in to change notification settings - Fork 95
Simplify personal config as hiera-managed params #119
Conversation
Very good. |
This looks wonderful ✨. Does this mean that puppet-brewcask is now a permanent dependency of puppet-boxen? |
@tarebyte It's an optional dependency; if people use the I forked phinze/puppet-brewcask last night into the boxen org, and will add it to the our-boxen Puppetfile once I release this 😁 A big goal of this work is to be able to deprecate about 200 of the 300 or so modules on here which only install an app or a package. They're broadly unmaintained, and a massive overhead for all of us as I'm sure you're acutely aware. |
Simplify personal config as hiera-managed params
Released in 3.10.0 |
It installed the |
I'm having this error: Anyone facing the same issue? I have |
@bpinto Can you open an issue on the boxen-brewcask repo with some more details? @goofansu I'll see if I can reproduce this |
@goofansu @dgoodlad — I've encountered the same problem, and was about to fork this repo to issue a PR. The issue is caused by manifests/personal.pp#L58: # $casks and $osx_apps are synonyms. $osx_apps takes precedence
$_casks = $osx_apps ? {
undef => $casks,
default => $osx_apps
}
# If any casks/osx_apps are specified, declare them as brewcask packages
if count($_casks) > 0 { include brewcask }
ensure_resource('package', $casks, {
'provider' => 'brewcask',
'install_options' => '--appdir=/Applications',
})
|
Thanks @jamieconnolly! Fixed in #120, shipped as 3.10.1 |
@dgoodlad can I use this configuration schema for global configuration? for example in the |
I found this boxen/puppet-brewcask#29, there I explain that is not working that approach for me... any idea? |
Thank you so much for this awesome feature @dgoodlad! I run into a small problem when I wanted to install Textmate: boxen::personal::osx_apps:
- textmate Error: Execution of 'brew cask install textmate --appdir=/Applications' returned 1: ==> Downloading https://api.textmate.org/downloads/release
==> Symlinking App 'TextMate.app' to '/Applications/TextMate.app'
Error: Permission denied - /usr/local
==> Symlinking Binary 'mate' to '/usr/local/bin/mate' The Textmate cask tries to symlink a helper binary to As far as I can tell, we should install the helper into To test this out I put the following in class people::sebroeder {
include brewcask
package { 'textmate':
ensure => present,
provider => brewcask,
install_options => ['--appdir=/Applications', '--binarydir=/opt/boxen/homebrew/bin'],
}
} This worked for me (I did not want to mess with https://github.com/boxen/puppet-boxen/blob/master/manifests/personal.pp#L56-L61 for now). Could you add the |
hi @dgoodlad I'm trying to define some # common.yaml
boxen::personal::osx_apps:
- google-chrome
- hipchat # users/blackjid.yaml
boxen::personal::osx_apps:
- vlc # config/hiera.yaml
:backends:
- yaml
:yaml:
:datadir: "%{::boxen_home}/repo/hiera"
:hierarchy:
- "users/%{github_login}"
- common
:merge_behavior: deeper this is my configuration.... and the results are that only What I have found is that if I don't add the It looks like hieras is not using the thanks! |
@dgoodlad sorry, I know this is closed, but could you please help me? thanks! |
anybody?? please! :) |
/cc @seanknox |
@blackjid I assume hiera is properly handling arrays, or else I believe your personal manifest wouldn't have worked (it's just an array with one item). Regarding placement of hiera yaml files:
@blackjid @sebroeder and anyone still having issues, can you please file an issue if you haven't already? |
yes, that are the location of my hiera yaml files. I will open an issue |
Based on GDS setup, plus updated to use modern Boxen features. See boxen/puppet-boxen#119 - Add jabley personal manifest - Add puppet modules to vendor cache - Configure SSH
This is intended to be exposed and used via hiera. Example usage (yaml):