should policy.lock.json files be in source control?
Tokynet joined the channel
coderanger
For `policies/`-ish policies, yes
For test policies used in cookbooks, no.
Similar rules as to berks or gemfile lock.
FatDarrel joined the channel
fletchowns
got it, thanks
Majost
So I have an interesting problem -- I am trying to call an application via mixlib-shellout, and the application has a config file in $HOME/.config/ -- but when I try to run the application via test kitchen (vagrant), the application doesn't see the config file because kitchen uses `sudo -E` and doesn't look in /root/.config -- it looks in
/home/vagrant/.config instead.
Any ideas on what I can do to work around this?
Do I need to override the environment variable for $HOME in my mixlib-shellout call?
Wolfspyre has quit
pat2man joined the channel
eyck joined the channel
arnonhongklay joined the channel
coderanger
Majost: Yes, or if you have poise around, the poise_shell_out helper does this automatically
It's on my list to backport to shellout at some point, there is an open ticket
Majost
Sweet!
Majost replaces the mixlib-shellout calls
mornap joined the channel
_foldLeft joined the channel
mornap has quit
coderanger
It also sets $USER and $LOGNAME, and fills in primary groups, but that's almost always the right thing anyway
mornap joined the channel
Majost
Can I call new on Poise::Utils::ShellOut to check the return status?
coderanger
No? They work just like Chef's normal shell_out and shell_out helpers
poguez_ has quit
You either include them as a mixin or call them as global methods
Using them as globals will disable the windows command reparse though
The return value of both is the mixlib::shellout object, you can check the return codes there
Majost
oh, that works
ICantCook joined the channel
sjmh joined the channel
ssd7 has quit
coderanger
And they are already included in most poise scopes
(resources, providers)
spuder joined the channel
arnonhongklay has quit
arnonhongklay joined the channel
fletchowns
for the Env Policy slide on https://yolover.poise.io/ does that mean i'll end up with policies like _prod_app.rb and _dev_app.rb ?
AllanEsp1nosa joined the channel
coderanger
fletchowns: No, envs become policy groups, its all discussed in there :P