deployment - Setup SSL keys when using roles-profiles pattern with Puppet -



deployment - Setup SSL keys when using roles-profiles pattern with Puppet -

here scenario. have 2 web applications (lets phone call them webapp1 , webapp2) needs apache, php (with modules), , web app's code self. how set set (using roles-profiles pattern):

modules/ apache/ php/ webapp1/ # responsible cloning repo , setting config files webapp2/ # responsible cloning repo , setting config files profiles/ manifests/ webapp1.pp # responsible putting stack webapp2.pp # responsible putting stack

profiles/manifests/webapp1.pp looks this:

class profiles::webapp1 { include ::apache include ::php include ::webapp1 }

and profiles/manifests/webapp1.pp looks this:

class profiles::webapp2 { include ::apache include ::php include ::webapp2 }

now both applications have served on https , need same set of ssl certificates (imagine webapp1 , webapp2 served different subdomains of domain , have wildcard certificate both applications can utilize same certificate). now, can't decide manifest ssl setup in (i.e. setting keys , certs using file type. reason @ to the lowest degree right now, going have both webapp1 , webapp2 in same role manifest flexible can move webapp1 , webapp2 in different roles without worrying doing ssl setup differently.

deployment puppet sysadmin configuration-management

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -