Installing a puppet module from a manifest script

后端 未结 8 2188
不思量自难忘°
不思量自难忘° 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:46

    You can create a directory for modules and add the apt module that you downloaded from the forge. So it will be modules/apt/*. Then you can specify this module directory in Vagrantfile (module_path is relative to Vagrantfile):

    Vagrant.configure("2") do |config|
      config.vm.provision :puppet do |puppet|
        puppet.module_path = "modules"
      end
    end
    

    For more information see the documentation.

提交回复
热议问题