8000 GitHub - beergeek/trlinkin-noop: Puppet DSL 'noop' function. This allows every resource in the containing scope to be set to noop by default. · GitHub
[go: up one dir, main page]

Skip to content

About

Puppet DSL 'noop' function. This allows every resource in the containing scope to be set to noop by default.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

Noop

Build Status

A Puppet DSL noop() function for setting a whole scope to noop.

Usage

This is a statement function that accepts no arguments. It can be called at any scope. Its effects will propagate into child scopes.

class ssh {

  noop()

  package { 'openssh-server' :
    ensure => installed,
  }

  file { '/etc/ssh/sshd_config':
    ensure => file,
  }

  service { 'sshd':
    ensure  => running,
    require => Package['openssh-server'],
  }
}

The outcome of the usage in the example above will be equivalent to setting noop => true as a default for each resource. None of the resources in Class['ssh'] will be enforced.

License

Copyright 2012 Thomas Linkin tom@puppetlabs.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Puppet DSL 'noop' function. This allows every resource in the containing scope to be set to noop by default.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0