- rubocop-i18n
- rubocop-rspec
".travis.yml":
+ deploy_to_forge:
+ enabled: false
branches:
- release
includes:
- static
- spec
- acceptance
- -
- if: tag =~ ^v\d
- name: deploy
matrix:
fast_finish: true
include:
services: docker
stage: acceptance
sudo: required
- -
- env: DEPLOY_TO_FORGE=yes
- stage: deploy
branches:
only:
- master
##### `server`
-Data type: `Pattern[/\A((hkp|hkps|http|https):\/\/)?([a-z\d])([a-z\d-]{0,61}\.)+[a-z\d]+(:\d{2,5})?(\/[a-zA-Z\d\-_]+)*\/?$/]`
+Data type: `Pattern[/\A((hkp|hkps|http|https):\/\/)?([a-z\d])([a-z\d-]{0,61}\.)+[a-z\d]+(:\d{2,5})?(\/[a-zA-Z\d\-_.]+)*\/?$/]`
Specifies a keyserver to provide the GPG key. Valid options: a string containing a domain name or a full URL (http://, https://,
hkp:// or hkps://). The hkps:// protocol is currently only supported on Ubuntu 18.04.
desc 'The key server to fetch the key from based on the ID. It can either be a domain name or url.'
defaultto :'keyserver.ubuntu.com'
- newvalues(%r{\A((hkp|hkps|http|https):\/\/)?([a-z\d])([a-z\d-]{0,61}\.)+[a-z\d]+(:\d{2,5})?(\/[a-zA-Z\d\-_]+)*\/?$})
+ newvalues(%r{\A((hkp|hkps|http|https):\/\/)?([a-z\d])([a-z\d-]{0,61}\.)+[a-z\d]+(:\d{2,5})?(\/[a-zA-Z\d\-_.]+)*\/?$})
end
newparam(:options) do
Enum['present', 'absent', 'refreshed'] $ensure = present,
Optional[String] $content = undef,
Optional[Pattern[/\Ahttps?:\/\//, /\Aftp:\/\//, /\A\/\w+/]] $source = undef,
- Pattern[/\A((hkp|hkps|http|https):\/\/)?([a-z\d])([a-z\d-]{0,61}\.)+[a-z\d]+(:\d{2,5})?(\/[a-zA-Z\d\-_]+)*\/?$/] $server = $::apt::keyserver,
+ Pattern[/\A((hkp|hkps|http|https):\/\/)?([a-z\d])([a-z\d-]{0,61}\.)+[a-z\d]+(:\d{2,5})?(\/[a-zA-Z\d\-_.]+)*\/?$/] $server = $::apt::keyserver,
Boolean $weak_ssl = false,
Optional[String] $options = $::apt::key_options,
) {
# Optional if lsb-release is installed (unless you're using a different release than indicated by lsb-release, e.g., Linux Mint).
# Specifies the operating system of your node. Valid options: a string containing a valid LSB distribution codename.
#
+# @param dist
+# Optional if lsb-release is installed (unless you're using a different release than indicated by lsb-release, e.g., Linux Mint).
+# Specifies the distribution of your node. Valid options: a string containing a valid distribution codename.
+#
# @param package_name
# Names the package that provides the `apt-add-repository` command. Default: 'software-properties-common'.
#
String $ensure = 'present',
Optional[String] $options = $::apt::ppa_options,
Optional[String] $release = $facts['lsbdistcodename'],
+ Optional[String] $dist = $facts['lsbdistid'],
Optional[String] $package_name = $::apt::ppa_package,
Boolean $package_manage = false,
) {
fail(translate('lsbdistcodename fact not available: release parameter required'))
}
- if $facts['lsbdistid'] == 'Debian' {
+ if $dist == 'Debian' {
fail(translate('apt::ppa is not currently supported on Debian.'))
}
if versioncmp($facts['lsbdistrelease'], '14.10') >= 0 {
- $distid = downcase($facts['lsbdistid'])
+ $distid = downcase($dist)
$dash_filename = regsubst($name, '^ppa:([^/]+)/(.+)$', "\\1-${distid}-\\2")
$underscore_filename = regsubst($name, '^ppa:([^/]+)/(.+)$', "\\1_${distid}_\\2")
} else {
}
],
"template-url": "https://github.com/puppetlabs/pdk-templates#master",
- "template-ref": "heads/master-0-gfaf9e8b",
+ "template-ref": "heads/master-0-g643529a",
"pdk-version": "1.14.1"
}