How to splip/regroup profile

28 views
Skip to first unread message

Albert Shih

unread,
Sep 9, 2016, 10:27:05 AM9/9/16
to puppet...@googlegroups.com
Hi,

I would like to understand how I should split profile and how to regroup
them.

For some webapp I need to have three (or more) server, one for the
production, one for test, one for sandbox etc..

I create a profile for the webapp, so inside that profile I
configure the (let's say) php and mysql database. So inside the hiera I
got

profile::webapp::mysql_db_name :
profile::webapp::mysql_db_pass :
etc...

I would use this profile inside a role, this role
eventually load class { 'apache': } or a apache profile, or nginx etc..

I also need some script who can wipe out the sandbox and make a copy of the
production version over the sandbox version.

I like to have a profile for those two test version, and the problem is the
profile need to know the password of the database. How can I do that
without duplicating the password neither to access some hieradata for one
class from other class.

Regards.

JAS




--
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
France
Téléphone : +33 1 45 07 76 26/+33 6 86 69 95 71
xmpp: j...@obspm.fr
Heure local/Local time:
ven 9 sep 2016 16:16:27 CEST
Reply all
Reply to author
Forward
0 new messages