Skip to content

Commit 728c716

Browse files
authored
Merge pull request #980 from puppetlabs/maint_fix_jekyll_version
(maint) Bump Jekyll version to resolve security alert
2 parents ca89566 + b137581 commit 728c716

File tree

4 files changed

+43
-42
lines changed

4 files changed

+43
-42
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ gem 'git'
88
gem 'json'
99

1010
group(:build_site) do
11-
gem 'jekyll', '3.0.1'
12-
gem 'kramdown', '1.12.0'
11+
gem 'jekyll', '>= 3.6.3'
12+
gem 'kramdown', '~> 1.14'
1313
gem 'vlad'
1414
gem 'vlad-git'
1515
gem 'listen', '~> 3.0.0' # Preserve ability to run on Ruby 2.0, since listen 3.1 requires Ruby ~> 2.2.

source/_plugins/sitemap_generator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def fill_url(site, page_or_post)
187187
# Returns the location of the page or post
188188
def fill_location(site, page_or_post)
189189
loc = REXML::Element.new "loc"
190+
site.config['baseurl'] = ""
190191
url = site.config['url'] + site.config['baseurl']
191192
loc.text = page_or_post.location_on_server(url)
192193

source/puppet/5.3/hiera_config_yaml_5.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ There are several hiera.yaml files in a typical deployment. Hiera uses three lay
2727

2828
The configuration file locations for each layer:
2929

30-
Layer | Location | Example
31-
------------|-------------------------------------------------|--------
32-
Global | [`$confdir`][confdir]`/hiera.yaml` | `/etc/puppetlabs/puppet/hiera.yaml` `C:\ProgramData\PuppetLabs\puppet\etc\hiera.yaml`
30+
Layer | Location | Example
31+
------------|------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------
32+
Global | [`$confdir`][confdir]`/hiera.yaml` | `/etc/puppetlabs/puppet/hiera.yaml` `C:\ProgramData\PuppetLabs\puppet\etc\hiera.yaml`
3333
Environment | [`<ENVIRONMENT>`](https://puppet.com/docs/puppet/latest/environments_about.html) `/hiera.yaml` | `/etc/puppetlabs/code/environments/production/hiera.yaml` `C:\ProgramData\PuppetLabs\code\environments\production\hiera.yaml`
34-
Module | [`<MODULE>`][module]`/hiera.yaml` | `/etc/puppetlabs/code/environments/production/modules/ntp/hiera.yaml` `C:\ProgramData\PuppetLabs\code\environments\production\modules\ntp\hiera.yaml`
34+
Module | [`<MODULE>`][module]`/hiera.yaml` | `/etc/puppetlabs/code/environments/production/modules/ntp/hiera.yaml` `C:\ProgramData\PuppetLabs\code\environments\production\modules\ntp\hiera.yaml`
3535

3636
> Note: You can change the location for the global layer's hiera.yaml with Puppet's `hiera_config` setting.
3737
@@ -191,13 +191,13 @@ Related topics: [variable interpolation][variables], [YAML][yaml_data], [JSON][j
191191

192192
Options for specifying a file path:
193193

194-
Key | Data type | Expected value
195-
--------|-----------|---------------
196-
`path` | String | One file path.
197-
`paths` | Array | Any number of file paths. This acts like a sub-hierarchy: if multiple files exist, Hiera searches all of them, in the order in which they're written.
198-
`glob` | String | One shell-like glob pattern, which might match any number of files. If multiple files are found, Hiera searches all of them in alphanumerical order.
199-
`globs` | Array | Any number of shell-like glob patterns. If multiple files are found, Hiera searches all of them in alphanumerical order (ignoring the order of the globs).
200-
`mapped_paths` | Array or Hash | A fact that is a collection (array or hash) of values. Hiera expands these values to produce an array of paths.
194+
Key | Data type | Expected value
195+
---------------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------
196+
`path` | String | One file path.
197+
`paths` | Array | Any number of file paths. This acts like a sub-hierarchy: if multiple files exist, Hiera searches all of them, in the order in which they're written.
198+
`glob` | String | One shell-like glob pattern, which might match any number of files. If multiple files are found, Hiera searches all of them in alphanumerical order.
199+
`globs` | Array | Any number of shell-like glob patterns. If multiple files are found, Hiera searches all of them in alphanumerical order (ignoring the order of the globs).
200+
`mapped_paths` | Array or Hash | A fact that is a collection (array or hash) of values. Hiera expands these values to produce an array of paths.
201201

202202
> Note: You can only use one of these keys in a given hierarchy level.
203203

@@ -209,21 +209,21 @@ File paths are relative to the `datadir`: if the full datadir is `/etc/puppetlab
209209

210210
Globs are implemented with Ruby's `Dir.glob` method:
211211

212-
- One asterisk (`*`) matches a run of characters.
213-
- Two asterisks (`**`) matches any depth of nested directories.
214-
- A question mark (`?`) matches one character.
215-
- Comma-separated lists in curly braces (`{one,two}`) match any option in the list.
216-
- Sets of characters in square brackets (`[abcd]`) match any character in the set.
217-
- A backslash (`\`) escapes special characters.
212+
* One asterisk (`*`) matches a run of characters.
213+
* Two asterisks (`**`) matches any depth of nested directories.
214+
* A question mark (`?`) matches one character.
215+
* Comma-separated lists in curly braces (`{one,two}`) match any option in the list.
216+
* Sets of characters in square brackets (`[abcd]`) match any character in the set.
217+
* A backslash (`\`) escapes special characters.
218218

219219
Example:
220220

221-
``` yaml
222221
{% raw %}
223-
- name: "Domain or network segment"
222+
``` yaml
223+
- name: "Domain or network segment"
224224
glob: "network/**/{%{facts.networking.domain},%{facts.networking.interfaces.en0.bindings.0.network}}.yaml"
225-
{% endraw %]
226225
```
226+
{% endraw %}
227227

228228
The `mapped_paths` key must contain three string elements, in the following order:
229229

source/puppet/5.4/hiera_config_yaml_5.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ There are several hiera.yaml files in a typical deployment. Hiera uses three lay
2727

2828
The configuration file locations for each layer:
2929

30-
Layer | Location | Example
31-
------------|-------------------------------------------------|--------
32-
Global | [`$confdir`][confdir]`/hiera.yaml` | `/etc/puppetlabs/puppet/hiera.yaml` `C:\ProgramData\PuppetLabs\puppet\etc\hiera.yaml`
30+
Layer | Location | Example
31+
------------|------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------
32+
Global | [`$confdir`][confdir]`/hiera.yaml` | `/etc/puppetlabs/puppet/hiera.yaml` `C:\ProgramData\PuppetLabs\puppet\etc\hiera.yaml`
3333
Environment | [`<ENVIRONMENT>`](https://puppet.com/docs/puppet/latest/environments_about.html) `/hiera.yaml` | `/etc/puppetlabs/code/environments/production/hiera.yaml` `C:\ProgramData\PuppetLabs\code\environments\production\hiera.yaml`
34-
Module | [`<MODULE>`][module]`/hiera.yaml` | `/etc/puppetlabs/code/environments/production/modules/ntp/hiera.yaml` `C:\ProgramData\PuppetLabs\code\environments\production\modules\ntp\hiera.yaml`
34+
Module | [`<MODULE>`][module]`/hiera.yaml` | `/etc/puppetlabs/code/environments/production/modules/ntp/hiera.yaml` `C:\ProgramData\PuppetLabs\code\environments\production\modules\ntp\hiera.yaml`
3535

3636
> Note: You can change the location for the global layer's hiera.yaml with Puppet's `hiera_config` setting.
3737
@@ -191,13 +191,13 @@ Related topics: [variable interpolation][variables], [YAML][yaml_data], [JSON][j
191191

192192
Options for specifying a file path:
193193

194-
Key | Data type | Expected value
195-
--------|-----------|---------------
196-
`path` | String | One file path.
197-
`paths` | Array | Any number of file paths. This acts like a sub-hierarchy: if multiple files exist, Hiera searches all of them, in the order in which they're written.
198-
`glob` | String | One shell-like glob pattern, which might match any number of files. If multiple files are found, Hiera searches all of them in alphanumerical order.
199-
`globs` | Array | Any number of shell-like glob patterns. If multiple files are found, Hiera searches all of them in alphanumerical order (ignoring the order of the globs).
200-
`mapped_paths` | Array or Hash | A fact that is a collection (array or hash) of values. Hiera expands these values to produce an array of paths.
194+
Key | Data type | Expected value
195+
---------------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------
196+
`path` | String | One file path.
197+
`paths` | Array | Any number of file paths. This acts like a sub-hierarchy: if multiple files exist, Hiera searches all of them, in the order in which they're written.
198+
`glob` | String | One shell-like glob pattern, which might match any number of files. If multiple files are found, Hiera searches all of them in alphanumerical order.
199+
`globs` | Array | Any number of shell-like glob patterns. If multiple files are found, Hiera searches all of them in alphanumerical order (ignoring the order of the globs).
200+
`mapped_paths` | Array or Hash | A fact that is a collection (array or hash) of values. Hiera expands these values to produce an array of paths.
201201

202202
> Note: You can only use one of these keys in a given hierarchy level.
203203

@@ -209,21 +209,21 @@ File paths are relative to the `datadir`: if the full datadir is `/etc/puppetlab
209209

210210
Globs are implemented with Ruby's `Dir.glob` method:
211211

212-
- One asterisk (`*`) matches a run of characters.
213-
- Two asterisks (`**`) matches any depth of nested directories.
214-
- A question mark (`?`) matches one character.
215-
- Comma-separated lists in curly braces (`{one,two}`) match any option in the list.
216-
- Sets of characters in square brackets (`[abcd]`) match any character in the set.
217-
- A backslash (`\`) escapes special characters.
212+
* One asterisk (`*`) matches a run of characters.
213+
* Two asterisks (`**`) matches any depth of nested directories.
214+
* A question mark (`?`) matches one character.
215+
* Comma-separated lists in curly braces (`{one,two}`) match any option in the list.
216+
* Sets of characters in square brackets (`[abcd]`) match any character in the set.
217+
* A backslash (`\`) escapes special characters.
218218

219219
Example:
220220

221-
``` yaml
222221
{% raw %}
223-
- name: "Domain or network segment"
222+
``` yaml
223+
- name: "Domain or network segment"
224224
glob: "network/**/{%{facts.networking.domain},%{facts.networking.interfaces.en0.bindings.0.network}}.yaml"
225-
{% endraw %]
226225
```
226+
{% endraw %}
227227

228228
The `mapped_paths` key must contain three string elements, in the following order:
229229

0 commit comments

Comments
 (0)