Installing a puppet module from a manifest script

后端 未结 8 2185
不思量自难忘°
不思量自难忘° 2020-12-12 15:27

I\'m using puppet to provision a vagrant (ubuntu based) virtual machine. In my script I need to:

sudo apt-get build-dep python-lxml

I know

8条回答
  •  青春惊慌失措
    2020-12-12 15:40

    You can install puppet modules on the host machine within your vagrantdir:

    puppet module --modulepath=./puppet/modules/ install puppetlabs/mysql
    

    Vagrant takes care to mount this directory to the right place. So there is no need to run scripts other than puppet itself on the node.

提交回复
热议问题