Module: MasterManipulator::Config

Included in:
Beaker::TestCase
Defined in:
lib/master_manipulator/config.rb

Instance Method Summary collapse

Instance Method Details

#disable_env_cache(master_host) ⇒ Object

Disable environment caching on the Puppet master. Modifying this this setting requires reloading (preferred) or restarting (not preferred) the Puppet server

Examples:

Disable the environment cache on master

disable_env_cache(master)
reload_puppetserver(master)

Parameters:

  • master_host (Beaker::Host)

    The master running the Puppet server.

Returns:

  • nil



22
23
24
# File 'lib/master_manipulator/config.rb', line 22

def disable_env_cache(master_host)
  on(master_host, puppet('config set environment_timeout 0 --section main'))
end

#disable_node_classifier(master_host) ⇒ Object

Disable the node classifier on the Puppet master

Examples:

Disable the node classifier on the master

disable_node_classifier(master)
reload_puppetserver(master)

Parameters:

  • master_host (Beaker::Host)

    The master running the Puppet server.

Returns:

  • nil



10
11
12
# File 'lib/master_manipulator/config.rb', line 10

def disable_node_classifier(master_host)
  on(master_host, puppet('config set node_terminus plain --section master'))
end