Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Avoid duplicate declaration errors with roles/profiles

$
0
0
Hi, We use the roles/profiles paradigm, but I'm struggling with a specific case. A certain node has multiple profiles, for example 'jenkins' and 'artifactory'. Both of these require the same Java version, which I had declared like this: jdk_oracle::version { $jdk_version : system_default => true, } Having it set like this allows other nodes to have multiple versions of java installed (some have 7 and 8). On this particular node, both profiles have the same version. How do other people solve this? I *could* bring the jdk installation into the role, or a separate profile, but this loses the information that both Jenkins and Artifactory require this particular version. These roles both use other modules to handle the finer grained details of a Jenkins and Artifactory installation, the profile is very site specific. Regards, Steven

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>