Version information
Start using this module
Add this module to your Puppetfile:
mod 'ithempel-ppa', '1.0.2'
Learn more about managing modules with a PuppetfileDocumentation
ppa
This puppet module provides defines to manage personal package archives (ppa) in ubuntu.
There will be a failure if you try to use the defines with a distribution other than ubuntu or one of it's derivates.
ppa::repo
With this define you are able to add or remove a ppa to your configuration. If you define a gpg key for the ppa, this key will be imported by the ppa::key define.
Parameters
namevar The name of the resource is the name of the ppa repository to add. The name of the ppa repository is the part after the ppa: string. The rule for the ppa name is 'user/ppaname'; e.g. 'blueyed/ppa'. The default for the ppaname is ppa.
ensure The default value is 'present' to add the ppa repository to the installation. The value 'absent' can be used to remove the ppa repository from the configuration.
apt_key Hashcode of the apt-key of the ppa repository. The key will be retrieved and added to the repository of apt-keys.
comment Optional comment / remark for the ppa repository to be stored in the repository definition file.
dist Name of the distribution for which to retrieve the files from the repository. The default value for the attribute dist will be the value of the facter / variable lsbdistcodename.
supported List of supported distributions. If the value of the attribute dist is not contained the definition will remove the corresponding ppa repository definition.
keyserver Server from which the apt_key should be retrieved. The default of this attribute is keyserver.ubuntu.com.
Examples
ppa::repo { 'blueyed/ppa':
apt_key => '7CC17CD2'
}
ppa::repo { 'blueyed/ppa':
ensure => present,
}
ppa::repo { 'blueyed/ppa':
ensure => absent,
}
ppa::key
The define is used to add or remove the gpg key of a ppa to the apt keystore. The key will be retrieved from the ubuntu keystore. It's possible to define a different keystore.
Parameters
namevar The name of the resource is the unique number of the key to be added.
ensure With the value 'present' the given key will be listed in the key store for apt. If the value is 'absent' the key will be removed from the key store.
keyserver The name of the server to retrieve the give from. The default key server is keyserver.ubuntu.com.
Examples
ppa::key { '7CC17CD2':
}
ppa::key { '7CC17CD2':
ensure => present,
}
ppa::key { '7CC17CD2':
ensure => absent,
}
Copyright 2013 Sebastian Hempel Copyright 2011 Daniel Hahler Based on the work of Daniel Hahler https://gist.github.com/blueyed/844735 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.