badstation
Scheduled for Deprecation
13,438 downloads
9,695 latest version
1.9 quality score
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.
Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.
Version information
- 0.1.22 (latest)
- 0.1.20
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.1
- 0.1.0
This version is compatible with:
- ubuntu14.10
Start using this module
- r10k or Code Manager
- Bolt
- Manual installation
- Direct download
Add this module to your Puppetfile:
mod 'badquanta-badstation', '0.1.10'
Learn more about managing modules with a PuppetfileAdd this module to your Bolt project:
bolt module add badquanta-badstation
Learn more about using this module with an existing projectManually install this module globally with Puppet module tool:
puppet module install badquanta-badstation --version 0.1.10
Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.
DownloadDocumentation
badstation
BadQuanta's collection of manifests files for his "BadStations."
License
Everything BadQuanta does by default should be considered licensed under the GNU GPL unless otherwise stated.
Usage
By including badstation in a manifest you are ensuring it is configured the same
way I configure my basic stations. Namespaced modules provide specific configuration
sets, such as: badstation::gui
, badstation::rvm
, etc.
Support
If you find these manifests useful but have a problem then submit an issue ticket. An emailed question is fine to send, but no response is promised. Increase your chances by writting well.
Contact
Types in this module release
Manage RVM Aliases.
Parameters | |
---|---|
ensure | |
name | The name of the alias to be managed. |
provider | |
target_ruby | The ruby version that is the target of our alias. For example: 'ruby-1.9.2-p290' |
Providers | |
---|---|
alias | RVM alias support. |
A simple resource type intended to be used as an anchor in a composite class.
In Puppet 2.6, when a class declares another class, the resources in the interior class are not contained by the exterior class. This interacts badly with the pattern of composing complex modules from smaller classes, as it makes it impossible for end users to specify order relationships between the exterior class and other modules.
The anchor type lets you work around this. By sandwiching any interior classes between two no-op resources that are contained by the exterior class, you can ensure that all resources in the module are contained.
class ntp {
# These classes will have the correct order relationship with each
# other. However, without anchors, they won't have any order
# relationship to Class['ntp'].
class { 'ntp::package': }
-> class { 'ntp::config': }
-> class { 'ntp::service': }
# These two resources "anchor" the composed classes within the ntp
# class.
anchor { 'ntp::begin': } -> Class['ntp::package']
Class['ntp::service'] -> anchor { 'ntp::end': }
}
This allows the end user of the ntp module to establish require and before relationships with Class['ntp']:
class { 'ntp': } -> class { 'mcollective': }
class { 'mcollective': } -> class { 'ntp': }
Parameters | |
---|---|
name | The name of the anchor resource. |
Manage RVM Ruby installations.
Parameters | |
---|---|
build_opts | Build flags for RVM (e.g.: ['--movable', '--with-libyaml-dir=...', ...]) |
ensure | |
name | The name of the Ruby to be managed. |
no_proxy | exclude addresses from proxy use |
provider | |
proxy_url | Proxy to use when downloading ruby installation |
Properties | |
---|---|
autolib_mode | Set RVM autolib mode |
default_use | Should this Ruby be the system default for new terminals? |
Providers | |
---|---|
rvm | Ruby RVM support. |
Ruby Gem support using RVM.
Parameters | |
---|---|
ensure | What state the gem should be in. Possible values: present - the gem is installed latest - the gem is installed and is the latest stable version absent - the gem is not installed version - the gem is installed and matches the given version |
name | The name of the Ruby gem. |
provider | |
proxy_url | Proxy to use when downloading ruby installation |
ruby_version | The ruby version to use. This should be the fully qualified RVM string
(including gemset if applicable). For example: 'ruby-1.9.2-p136@mygemset'
For a full list of known strings: |
source | If a URL is passed via, then that URL is used as the remote gem repository; if a source is present but is not a valid URL, it will be interpreted as the path to a local gem file. If source is not present at all, the gem will be installed from the default gem repositories. |
withopts | Install the gem with these makefile opts. |
Providers | |
---|---|
gem | Ruby Gem support using RVM. |
Manage RVM Wrappers.
Parameters | |
---|---|
ensure | |
name | The name of the command to create a wrapper for to be managed. |
prefix | The prefix of the wrapper command to be managed. |
provider | |
target_ruby | The ruby version that is the target of our wrapper. For example: 'ruby-1.9.2-p290' |
Providers | |
---|---|
wrapper | RVM wrapper support. |
This type provides Puppet with the capabilities to manage GPG keys needed
by apt to perform package validation. Apt has it's own GPG keyring that can
be manipulated through the apt-key
command.
apt_key { '4BD6EC30':
source => 'http://apt.puppetlabs.com/pubkey.gpg'
}
**Autorequires**:
If Puppet is given the location of a key file which looks like an absolute
path this type will autorequire that file.
Parameters | |
---|---|
content | The content of, or string representing, a GPG key. |
ensure | |
id | The ID of the key you want to manage. |
keyserver_options | Additional options to pass to apt-key's --keyserver-options. |
provider | |
server | The key server to fetch the key from based on the ID. It can either be a domain name or url. |
source | Location of a GPG key file, /path/to/file, ftp://, http:// or https:// |
Properties | |
---|---|
created | Date the key was created.
|
expired | Indicates if the key has expired.
|
expiry | The date the key will expire, or nil if it has no expiry date.
|
size | The key size, usually a multiple of 1024.
|
type | The key type, either RSA or DSA.
|
Providers | |
---|---|
apt_key |
Ensures that a given line is contained within a file. The implementation matches the full line, including whitespace at the beginning and end. If the line is not contained in the given file, Puppet will add the line to ensure the desired state. Multiple resources may be declared to manage multiple lines in the same file.
Example:
file_line { 'sudo_rule':
path => '/etc/sudoers',
line => '%sudo ALL=(ALL) ALL',
}
file_line { 'sudo_rule_nopw':
path => '/etc/sudoers',
line => '%sudonopw ALL=(ALL) NOPASSWD: ALL',
}
In this example, Puppet will ensure both of the specified lines are
contained in the file /etc/sudoers.
**Autorequires:** If Puppet is managing the file that will contain the line
being managed, the file_line resource will autorequire that file.
Parameters | |
---|---|
after | An optional value used to specify the line after which we will add any new lines. (Existing lines are added in place) |
ensure | |
line | The line to be appended to the file located by the path parameter. |
match | An optional regular expression to run against existing lines in the file;\nif a match is found, we replace that line rather than adding a new line. |
multiple | An optional value to determine if match can change multiple lines. |
name | An arbitrary name used as the identity of the resource. |
path | The file Puppet will ensure contains the line specified by the line parameter. |
provider |
Providers | |
---|---|
ruby |
Manage RVM Gemsets.
Parameters | |
---|---|
ensure | |
name | The name of the gemset to be managed. |
provider | |
proxy_url | Proxy to use when downloading ruby installation |
ruby_version | The ruby version to use. This should be the fully qualified RVM string.
For example: 'ruby-1.9.2-p290'
For a full list of known strings: |
Providers | |
---|---|
gemset | RVM gemset support. |
Dependencies
- puppetlabs/stdlib (>= 4.5.0)
- puppetlabs/apt (>= 1.7.0)
- maestrodev/rvm (>= 1.8.1)
- saz/sudo (>= 3.0.9)
- mjanser/eclipse (>= 0.2.1)