Skip to content

Instantly share code, notes, and snippets.

@Iristyle
Created July 11, 2017 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Iristyle/ce390ef8f03785beea0d6acd808e33cd to your computer and use it in GitHub Desktop.
Save Iristyle/ce390ef8f03785beea0d6acd808e33cd to your computer and use it in GitHub Desktop.
Module source workflow changes to --modulepath
[root@flk17t5mqrky7o0 puppet]# bundle install --path .bundle/gems --without development extra
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing
your bundle as root will break this application for all non-root users on this
machine.
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.1.1
Using CFPropertyList 2.2.8
Using facter 2.4.6
Using fast_gettext 1.1.0
Using locale 2.1.2
Using text 1.3.1
Using hiera 3.4.0
Using json_pure 1.8.6
Using net-ssh 4.1.0
Using rspec-support 3.6.0
Using diff-lcs 1.3
Using metaclass 0.0.4
Using builder 3.2.3
Using multi_json 1.7.7
Using json-schema 2.1.1
Using ast 2.3.0
Using powerpack 0.1.1
Using ruby-progressbar 1.8.1
Using unicode-display_width 1.3.0
Using rdoc 4.3.0
Using yard 0.9.9
Using addressable 2.4.0
Using safe_yaml 1.0.4
Using hashdiff 0.3.4
Using vcr 2.9.3
Using hocon 1.2.5
Using highline 1.6.21
Using trollop 2.1.2
Using bundler 1.15.1
Using rainbow 2.2.2
Using gettext 3.2.3
Fetching rspec-core 3.6.0
Installing rspec-core 3.6.0
Fetching rspec-expectations 3.6.0
Installing rspec-expectations 3.6.0
Fetching rspec-mocks 3.6.0
Installing rspec-mocks 3.6.0
Fetching mocha 0.10.5
Installing mocha 0.10.5
Fetching parser 2.4.0.0
Installing parser 2.4.0.0
Fetching crack 0.4.3
Installing crack 0.4.3
Fetching hiera-eyaml 2.1.0
Installing hiera-eyaml 2.1.0
Fetching gettext-setup 0.25
Installing gettext-setup 0.25
Fetching rspec-its 1.2.0
Installing rspec-its 1.2.0
Fetching rspec-collection_matchers 1.1.3
Installing rspec-collection_matchers 1.1.3
Fetching rspec 3.6.0
Installing rspec 3.6.0
Fetching rubocop 0.39.0
Installing rubocop 0.39.0
Fetching webmock 1.24.6
Installing webmock 1.24.6
Using puppet 4.10.4 from source at `.`
Fetching rspec-legacy_formatters 1.0.1
Installing rspec-legacy_formatters 1.0.1
Fetching yarjuf 2.0.0
Installing yarjuf 2.0.0
Bundle complete! 25 Gemfile dependencies, 47 gems now installed.
Gems in the groups development, extra and development, were not installed.
Bundled gems are installed into ./.bundle/gems.
[root@flk17t5mqrky7o0 puppet]# bundle exec puppet resource a2mod --modulepath ~/modules
Warning: The a2mod provider is deprecated, please use apache::mod instead
Error: Could not autoload puppet/provider/a2mod/a2mod: cannot load such file -- puppet/provider/a2mod
Error: Could not autoload puppet/type/a2mod: Could not autoload puppet/provider/a2mod/a2mod: cannot load such file -- puppet/provider/a2mod
Error: Could not run: Could not autoload puppet/type/a2mod: Could not autoload puppet/provider/a2mod/a2mod: cannot load such file -- puppet/provider/a2mod
[root@flk17t5mqrky7o0 puppet]# bundle exec puppet --version
4.10.4
[root@flk17t5mqrky7o0 puppet]# pwd
/root/puppet
[root@flk17t5mqrky7o0 puppet]# bundle exec puppet resource a2mod --modulepath /root/modules/
Warning: The a2mod provider is deprecated, please use apache::mod instead
Error: Could not autoload puppet/provider/a2mod/a2mod: cannot load such file -- puppet/provider/a2mod
Error: Could not autoload puppet/type/a2mod: Could not autoload puppet/provider/a2mod/a2mod: cannot load such file -- puppet/provider/a2mod
Error: Could not run: Could not autoload puppet/type/a2mod: Could not autoload puppet/provider/a2mod/a2mod: cannot load such file -- puppet/provider/a2mod
[root@flk17t5mqrky7o0 puppet]# bundle exec puppet resource a2mod --modulepath /root/modules/puppetlabs-apache/
Error: Could not run: Could not find type a2mod
[root@flk17t5mqrky7o0 puppet]# git checkout master
Previous HEAD position was 8a1be18... Merge pull request #5995 from Magisus/v4.10.4-bump
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
[root@flk17t5mqrky7o0 puppet]# rm Gemfile.lock
rm: remove regular file 'Gemfile.lock'? y
[root@flk17t5mqrky7o0 puppet]# bundle install --path .bundle/gems --without development extra
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing
your bundle as root will break this application for all non-root users on this
machine.
The dependency ffi (~> 1.9.6) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32`.
The dependency win32-dir (= 0.4.9) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32`.
The dependency win32-process (= 0.7.5) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32`.
The dependency win32-security (= 0.2.5) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32`.
The dependency win32-service (= 0.8.8) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32`.
The dependency minitar (~> 0.6.1) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32`.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 10.1.1
Fetching CFPropertyList 2.3.5
Installing CFPropertyList 2.3.5
Using facter 2.4.6
Using fast_gettext 1.1.0
Using locale 2.1.2
Using text 1.3.1
Using hiera 3.4.0
Using hocon 1.2.5
Using net-ssh 4.1.0
Using rspec-support 3.6.0
Using diff-lcs 1.3
Using metaclass 0.0.4
Using builder 3.2.3
Using multi_json 1.7.7
Using json-schema 2.1.1
Using ast 2.3.0
Using powerpack 0.1.1
Fetching rainbow 2.1.0
Installing rainbow 2.1.0
Using ruby-progressbar 1.8.1
Using unicode-display_width 1.3.0
Using rdoc 4.3.0
Using yard 0.9.9
Using addressable 2.4.0
Using safe_yaml 1.0.4
Using hashdiff 0.3.4
Using vcr 2.9.3
Using highline 1.6.21
Using trollop 2.1.2
Using bundler 1.15.1
Using gettext 3.2.3
Using rspec-core 3.6.0
Using rspec-expectations 3.6.0
Using rspec-mocks 3.6.0
Using mocha 0.10.5
Using parser 2.4.0.0
Using crack 0.4.3
Using hiera-eyaml 2.1.0
Using gettext-setup 0.25
Using rspec-its 1.2.0
Using rspec-collection_matchers 1.1.3
Using rspec 3.6.0
Using rubocop 0.39.0
Using webmock 1.24.6
Using puppet 5.0.0 from source at `/root/puppet`
Using rspec-legacy_formatters 1.0.1
Using yarjuf 2.0.0
Bundle complete! 36 Gemfile dependencies, 46 gems now installed.
Gems in the groups development, extra and development, were not installed.
Bundled gems are installed into ./.bundle/gems.
[root@flk17t5mqrky7o0 puppet]# dnf install rubygem-json -y
Last metadata expiration check: 1 day, 2:47:45 ago on Mon Jul 10 13:43:24 2017.
Dependencies resolved.
======================================================================================
Package Arch Version Repository Size
======================================================================================
Installing:
rubygem-json x86_64 1.8.3-103.fc25 localmirror-everything 65 k
Transaction Summary
======================================================================================
Install 1 Package
Total download size: 65 k
Installed size: 149 k
Downloading Packages:
rubygem-json-1.8.3-103.fc25.x86_64.rpm 341 kB/s | 65 kB 00:00
--------------------------------------------------------------------------------------
Total 338 kB/s | 65 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Installing : rubygem-json-1.8.3-103.fc25.x86_64 1/1
Verifying : rubygem-json-1.8.3-103.fc25.x86_64 1/1
Installed:
rubygem-json.x86_64 1.8.3-103.fc25
Complete!
[root@flk17t5mqrky7o0 puppet]# bundle exec puppet resource a2mod --modulepath /root/modules
Error: Could not run: Could not find type a2mod
[root@flk17t5mqrky7o0 puppet]# bundle exec puppet resource a2mod --modulepath /root/modules/puppetlabs-apache/
Error: Could not run: Could not find type a2mod
[root@flk17t5mqrky7o0 puppet]# bundle exec puppet resource a2mod --modulepath /root/modules/puppetlabs-apache/lib/
Error: Could not run: Could not find type a2mod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment