Modifying the State of a Puppet Resource
You can also use the puppet resource
command to modify the state of a resource. You would use this method in lieu of directly modifying the configuration within a Puppet manifest.
For example, you would modify the state of the service
resource type as follows:
# puppet resource service svc:/network/dns/client:default enable=false
Notice: /Service[svc:/network/dns/client:default]/enable: enable changed 'true' to 'false'
service { 'svc:/network/dns/client:default':
ensure => 'stopped',
enable => 'false',
}