Skip to content

Instantly share code, notes, and snippets.

View bschonec's full-sized avatar

Brian Schonecker bschonec

  • 03:27 (UTC -04:00)
View GitHub Profile
alt::puppet::port: 8140
# This returns a string but I need an integer
puppet::port: "%{lookup('alt::puppet::port'}"
# This fails
puppet::port: "%{lookup('alt::puppet::port', Integer[0, 65535], 3333)}"
unning with gitlab-runner 15.2.0 (7f093137)
on brian UtxsTs47
Preparing the "docker" executor
00:01
Using Docker executor with image ruby:2.7.2 ...
Authenticating with credentials from /root/.docker/config.json
Pulling docker image ruby:2.7.2 ...
Using docker image sha256:e6c92ed2f03be9788b80944e148783bef8e7d0fa8d9755b62e9f03429e85a327 for ruby:2.7.2 with digest ruby@sha256:1dd0106849233fcd913b7c4608078fa1a53a5e3ce1af2a55e4d726b0d8868e2f ...
Preparing environment
00:01
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path 'vendor/bundle'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'system_tests'`, and stop using this flag
^Croot@59554927f766:/rspec# bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
root@59554927f766:/rspec# bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path 'vendor/bundle'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies
@bschonec
bschonec / govc.yml
Last active September 28, 2022 12:13
---
- name: Take or remove a Snapshot of a VMWare guest.
gather_facts: false
become: false
hosts: all
serial:
- 1
- 100%
max_fail_percentage: 1
nfiiseed@nfiv-schon-01d:~/puppet-ivanti$ pdk bundle exec rspec --fail-fast
pdk (INFO): Using Ruby 2.7.7
pdk (INFO): Using Puppet 7.22.0
An error occurred while loading ./spec/fixtures/modules/ivanti/spec/fixtures/modules/sudo/spec/acceptance/class_spec.rb. - Did you mean?
rspec ./spec/fixtures/modules/sudo/spec/facter/util/fact_sudoversion_spec.rb
Failure/Error: require 'spec_helper_acceptance'
LoadError:
nfiiseed@nfiv-schon-01d:~/puppet-ivanti$ pdk test unit --verbose --parallel
pdk (INFO): Using Ruby 2.7.7
pdk (INFO): Using Puppet 7.22.0
[✔] Preparing to run the unit tests.
1 process for 1 spec, ~ 1 spec per process
Run options: exclude {:bolt=>true}
ivanti
on oraclelinux-7-x86_64
is expected to compile into a catalogue without dependency cycles
Run bundle exec rake rubocop
The following cops were added to RuboCop, but are not configured. Please set Enabled to either `true` or `false` in your `.rubocop.yml` file.
Please also note that you can opt-in to new cops by default by adding this to your config:
AllCops:
NewCops: enable
RSpec/BeEq: # new in 2.9.0
Enabled: true
RSpec/BeNil: # new in 2.9.0
Enabled: true
[foo@941fe1b77b6f puppet-systemd]$ bundle install
Ignoring bcrypt_pbkdf-1.1.0 because its extensions are not built. Try: gem pristine bcrypt_pbkdf --version 1.1.0
Ignoring ed25519-1.3.0 because its extensions are not built. Try: gem pristine ed25519 --version 1.3.0
Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
Ignoring io-event-1.1.7 because its extensions are not built. Try: gem pristine io-event --version 1.1.7
Ignoring oga-3.4 because its extensions are not built. Try: gem pristine oga --version 3.4
Ignoring ruby-ll-2.1.2 because its extensions are not built. Try: gem pristine ruby-ll --version 2.1.2
Ignoring unf_ext-0.0.8.2 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.8.2
Fetching gem metadata from https://rubygems.org/.......
Using rake 13.0.6
{
comment => "Gitlab Server",
lane => "d",
prefix => "nfiv",
node_num => "01",
application => "gitlab"
}
hostnames = {
'server-01t.example.com' => { lane: 't'},
'server-02q.example.com' => { lane: 'q'},
'server-03u.example.com' => { lane: 'u'},
'server-04p.example.com' => { lane: 'p'},
}
long_lanes = { t: 'test', q: 'qua', u: 'uat', p: 'production'}
hostnames.each do |hostname, data|