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. (Note: this requires a restart of Puppet Server to take affect.)

Attributes

  • master_host - The master running Puppet Server.

Returns

nil

Examples

site_pp = disable_node_classifier(master_host)



34
35
36
# File 'lib/master_manipulator/config.rb', line 34

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. (Note: this requires a restart of Puppet Server to take affect.)

Attributes

  • master_host - The master running Puppet Server.

Returns

nil

Examples

site_pp = disable_node_classifier(master_host)



17
18
19
# File 'lib/master_manipulator/config.rb', line 17

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