Heyas, first time posting and recently new chef user (2 days to be exact).
Now im trying to do a deployment of tomcat + apache and since I run
100% RHEL I want the servers to join
groups in the satellite according to my structure. NP I got that part.
But I want to be able to use encrypted databags
to supply the recipe with credentials.
Havnt realy found any good guides how to use databags.
If I put the passwords there in cleartext it works like a charm. Its
no big deal since the user can only add systems to different groups in
satellite. But still I want the passwords hidden =)
Any takers to help me out here or perhaps have a nice databag tutorial
session with me? =)
bash “satellite_group_check” do
# check if in group allready
not_if “/usr/local/bin/rhn-tool -s my.satellite -l
user.to.manage.group -p user.passwrd --list-my-groups | grep Apache”,
:user => ‘root’
# Join the correct group user "root" code <<-EOH /usr/local/bin/rhn-tool -s my.satellite -l user.to.manage.group -p
user.passwrd -g Apache
Tel: +46-8-5142 4396
Schibsted Centralen IT