I am looking to use hiera in my environment but I cannot get past one thing. In our current puppet code we have some case statements based on environments. The case statements are like the following...
'production' { do this }
/^aw/ { do this } # this is for all AWS stuff
'aws' { do this } # this is the production like environment of AWS
otherenv { do this }
default { do this } # other server that default here
I would like hiera to do the following order, hostname, environment, common. I would also like to create one YAML file for all the AW* fîles rather than create one for awtest, awsandbox, awetc. Is there a way to do this in hiera that I am missing? Or will I need to re work some logic in my puppet code?
_____________________________________________________
This email and any files transmitted with it are confidential and intended solely for the addressee. If you received this email in error, please do not disclose the contents to anyone; kindly notify the sender by return email and delete this email and any attachments from your system.
© 2011 Currensee Inc. is a member of the National Futures Association (NFA) Member ID 0403251 | Over the counter retail foreign currency (Forex) trading may involve significant risk of loss. It is not suitable for all investors and you should make sure you understand the risks involved before trading and seek independent advice if necessary. Performance, strategies and charts shown are not necessarily predictive of any particular result and past performance is no indication of future results. Investor returns may vary from Trade Leader returns based on slippage, fees, broker spreads, volatility or other market conditions.