Deploying EC2 instances using different configuration files and puppet
What I wanna do is deploy AWS resources (EC2 mostly) on the basis of different configuration files I have - web.yaml, app.yaml, db.yaml - depending on what type of server I want to configure. Here is a use case:
I need the following servers deployed:
1 web server -- puppet must pick config from web.yaml
1 app server -- puppet must pick config from app.yaml
1 db server -- puppet must pick config from db.yaml
I have a puppet code that is using hiera() method calls to fill in each variable. And I have three different config files that must be called based on a parameter that I pass while executing the puppet code to deploy one of each server type.
I am pretty new to puppet and hiera and probably thinking out loud but any help or information would be appreciated...