What kind of puppet team does the tramp use for puppet support?

I use a stroller with a puppet. The provisioning setup in my firewall is as follows:

  config.vm.provision "puppet" do |puppet|
    puppet.manifests_path = "puppet/manifests"
    puppet.hiera_config_path = "puppet/hiera.yaml"
    puppet.module_path    = "../puppet/modules"
    puppet.manifest_file  = "site.pp"
  end

I have another virtual machine that is not controlled by a tramp and wants to apply a puppet configuration to it. I want to use the exact puppet command used by the tramp.

Can someone tell me which puppet command is used by the tramp?

+4
source share
2 answers

: plugins/provisioners/puppet/provisioner/puppet.rb. run_puppet_apply. / , .

, . "puppet apply", .

. , .

- , "" ?

, .

- , , . ( , ../puppet/modules ), hiera ( "" ) FACTER , .

+2

,

sudo puppet apply --hiera_config puppet/hiera.yaml --modulepath=../puppet/modules puppet/manifests/site.pp

( ..) ​​/vagrant . vagrant up vagrant ssh cd /vagrant , , .

+2

Source: https://habr.com/ru/post/1569185/


All Articles