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

Where can I find a good puppet template that ensures packages present and how to install python packages?

$
0
0
I am trying to learn to use puppet but I can't find any easy to follow templates to copy and modify. as background I spent about a week just to work out that the latest version `puppet 4.4` uses environments and I had to have a folder structure of: `puppet/environments/production/manifests` rather than just `puppet/manifests` like with older versions I have been trying to install packages with: class testclass { package { 'python-devel': ensure => 'present' } } include testclass inside my `site.pp` file yes I know should have nodes but is my single VM just node 'default' { stuff } as some tutorials seem to suggest? I tried that but then it didn't seem work properly with my vagrant provision. Now although my `testclass` doesn't error out the first time I provision subsequent attempts result in: ==> default: Error: Evaluation Error: Error while evaluating a Resource Statemen t, Cannot alias Package[python-dev] to ["python-devel", nil] at /tmp/vagrant-pup pet/environments/production/modules/python/manifests/install.pp:171; resource [" Package", "python-devel", nil] already declared at /tmp/vagrant-puppet/environme nts/production/manifests/site.pp:3 at /tmp/vagrant-puppet/environments/productio n/modules/python/manifests/install.pp:171:7 on node localhost.localdomain any tutorials on how to just have puppet configure a server with a few packages installed and some python libraries? I don't need multinodes / users / files copied / services started yet just basics for now.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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