Slackbot
07/27/2022, 9:37 AMMassimiliano (Max)
07/27/2022, 9:37 AMBrian
07/27/2022, 10:44 AMapache::mod::dir
to adjust DirectoryIndex values globally. I get a duplicate declaration error but don't see it declared anywhere. Any ideas?
puppet --version
6.23.0
https://forge.puppet.com/modules/puppetlabs/apache/6.4.0/reference#apachemoddir
# <https://forge.puppet.com/modules/puppetlabs/apache/reference#apachemoddir>
class { 'apache::mod::dir':
indexes => ['index.php', ',index.html', 'index.html.var', 'index.htm', 'index.htm.var', 'index.cgi', 'index.shtml'],
}
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Apache::Mod::Dir] is already declared; cannot redeclare (file: /etc/puppetlabs/code/environments/master/site-modules/profiles/manifests/www.pp, line: 118) (file: /etc/puppetlabs/code/environments/master/site-modules/profiles/manifests/www.pp, line: 118, column: 3) on node wwwproj4
egrep -Ri 'apache::mod' .
./puppetboard.pp: class { 'apache::mod::wsgi':
./www/proxy.pp: include apache::mod::proxy
./www/proxy.pp: include apache::mod::proxy_fcgi
./www/proxy.pp: include apache::mod::proxy_balancer
./www/proxy.pp: include apache::mod::proxy_connect
./www/proxy.pp: include apache::mod::proxy_html
./www/proxy.pp: include apache::mod::proxy_http
./www/proxy.pp: include apache::mod::proxy_wstunnel
./www/proj.pp: include apache::mod::proxy
./www/proj.pp: class { 'apache::mod::passenger':
./www.pp: class { 'apache::mod::ssl':
./www.pp: class { 'apache::mod::auth_cas':
./www.pp: class { 'apache::mod::md':
./www.pp: class { 'apache::mod::status':
./www.pp: class { 'apache::mod::userdir': }
./www.pp: class { 'apache::mod::remoteip': }
./www.pp: class { 'apache::mod::proxy_fcgi': }
./www.pp: #class { 'apache::mod::prefork':
./www.pp: class { 'apache::mod::php':
./www.pp: class { 'apache::mod::fcgid': }
Brian
07/27/2022, 10:47 AMapache::mod::dir
to adjust DirectoryIndex values. I get a duplicate declaration error but don't see it declared anywhere. Any ideas?
puppet --version
6.23.0
https://forge.puppet.com/modules/puppetlabs/apache/6.4.0/reference#apachemoddir
# <https://forge.puppet.com/modules/puppetlabs/apache/reference#apachemoddir>
class { 'apache::mod::dir':
indexes => ['index.php', ',index.html', 'index.html.var', 'index.htm', 'index.htm.var', 'index.cgi', 'index.shtml'],
}
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Apache::Mod::Dir] is already declared; cannot redeclare (file: /etc/puppetlabs/code/environments/master/site-modules/profiles/manifests/www.pp, line: 118) (file: /etc/puppetlabs/code/environments/master/site-modules/profiles/manifests/www.pp, line: 118, column: 3) on node wwwproj4
egrep -Ri 'apache::mod' .
./puppetboard.pp: class { 'apache::mod::wsgi':
./www/proxy.pp: include apache::mod::proxy
./www/proxy.pp: include apache::mod::proxy_fcgi
./www/proxy.pp: include apache::mod::proxy_balancer
./www/proxy.pp: include apache::mod::proxy_connect
./www/proxy.pp: include apache::mod::proxy_html
./www/proxy.pp: include apache::mod::proxy_http
./www/proxy.pp: include apache::mod::proxy_wstunnel
./www/proj.pp: include apache::mod::proxy
./www/proj.pp: class { 'apache::mod::passenger':
./www.pp: class { 'apache::mod::ssl':
./www.pp: class { 'apache::mod::auth_cas':
./www.pp: class { 'apache::mod::md':
./www.pp: class { 'apache::mod::status':
./www.pp: class { 'apache::mod::userdir': }
./www.pp: class { 'apache::mod::remoteip': }
./www.pp: class { 'apache::mod::proxy_fcgi': }
./www.pp: #class { 'apache::mod::prefork':
./www.pp: class { 'apache::mod::php':
./www.pp: class { 'apache::mod::fcgid': }
Neeloj
07/27/2022, 11:04 AMNeeloj
07/27/2022, 11:05 AMBrian
07/27/2022, 11:14 AMapache::mod::dir
to adjust DirectoryIndex values globally. I get a duplicate declaration error but don't see it declared anywhere. Any ideas?
puppet --version
6.23.0
https://forge.puppet.com/modules/puppetlabs/apache/6.4.0/reference#apachemoddir
# <https://forge.puppet.com/modules/puppetlabs/apache/reference#apachemoddir>
class { 'apache::mod::dir':
indexes => ['index.php', ',index.html', 'index.html.var', 'index.htm', 'index.htm.var', 'index.cgi', 'index.shtml'],
}
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Apache::Mod::Dir] is already declared; cannot redeclare (file: /etc/puppetlabs/code/environments/master/site-modules/profiles/manifests/www.pp, line: 118) (file: /etc/puppetlabs/code/environments/master/site-modules/profiles/manifests/www.pp, line: 118, column: 3) on node wwwproj4
egrep -Ri 'apache::mod' .
./puppetboard.pp: class { 'apache::mod::wsgi':
./www/proxy.pp: include apache::mod::proxy
./www/proxy.pp: include apache::mod::proxy_fcgi
./www/proxy.pp: include apache::mod::proxy_balancer
./www/proxy.pp: include apache::mod::proxy_connect
./www/proxy.pp: include apache::mod::proxy_html
./www/proxy.pp: include apache::mod::proxy_http
./www/proxy.pp: include apache::mod::proxy_wstunnel
./www/proj.pp: include apache::mod::proxy
./www/proj.pp: class { 'apache::mod::passenger':
./www.pp: class { 'apache::mod::ssl':
./www.pp: class { 'apache::mod::auth_cas':
./www.pp: class { 'apache::mod::md':
./www.pp: class { 'apache::mod::status':
./www.pp: class { 'apache::mod::userdir': }
./www.pp: class { 'apache::mod::remoteip': }
./www.pp: class { 'apache::mod::proxy_fcgi': }
./www.pp: #class { 'apache::mod::prefork':
./www.pp: class { 'apache::mod::php':
./www.pp: class { 'apache::mod::fcgid': }
Slackbot
07/27/2022, 1:19 PMtuxmea
07/27/2022, 1:45 PMKen Meservy
07/27/2022, 2:28 PMpdk validate
and I'm running into an error. I've tried several different fixes for what I'm running into and can't seem to get around it, pdk bundle update
& pdk bundle install
also error with the same message:
The dependency puppet-module-posix-default-r2.7 (~> 1.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for x64-mingw32 but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
The dependency puppet-module-posix-dev-r2.7 (~> 1.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for x64-mingw32 but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
The dependency voxpupuli-puppet-lint-plugins (>= 3.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for x64-mingw32 but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
The dependency puppet-module-posix-system-r2.7 (~> 1.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for x64-mingw32 but the dependency is only for ruby. To add
those platforms to the bundle, run `bundle lock --add-platform ruby`.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/Users/mcswe/AppData/Local/PDK/cache/ruby/2.7.0/gems/nio4r-2.5.8/ext/nio4r
C:/Program\ Files/Puppet\ Labs/DevelopmentKit/private/ruby/2.7.6/bin/ruby.exe -I
C:/Program\ Files/Puppet\
Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0 -r
./siteconf20220727-13800-g7xe0j.rb extconf.rb
C:/Program Files/Puppet
Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in
`require': cannot load such file -- devkit (LoadError)
from C:/Program Files/Puppet
Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in
`require'
from extconf.rb:7:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in
C:/Users/mcswe/AppData/Local/PDK/cache/ruby/2.7.0/gems/nio4r-2.5.8 for
inspection.
Results logged to
C:/Users/mcswe/AppData/Local/PDK/cache/ruby/2.7.0/extensions/x64-mingw32/2.7.0/nio4r-2.5.8/gem_make.out
An error occurred while installing nio4r (2.5.8), and Bundler cannot continue.
Make sure that `gem install nio4r -v '2.5.8' --source '<https://rubygems.org/>'`
succeeds before bundling.
In Gemfile:
github_changelog_generator was resolved to 1.16.4, which depends on
async-http-faraday was resolved to 0.11.0, which depends on
async-http was resolved to 0.56.6, which depends on
async-io was resolved to 1.33.0, which depends on
async was resolved to 1.30.3, which depends on
nio4r
pdk (FATAL): Unable to install missing Gemfile dependencies.
I can't seem to get the pdk to install that nio4r gem. I've completely removed the pdk from my system and did a fresh install this morning & that didn't resolve it either. I can see other folks having trouble with getting this gem installed & that it requires the ruby devkit, but I'm not sure how the pdk handles that - if I install ruby & the devkit standalone I can install this gem just fine. My machine is running Windows 10 & I'm on pdk version 2.5.0. I think if I knew a bit more about how ruby worked I could figure this out but I'm kind of stuck at the moment.
Does anyone have any suggestions? Thanks!
Edit: This is the error message reported in my user cache:
C:/Program\ Files/Puppet\ Labs/DevelopmentKit/private/ruby/2.7.6/bin/ruby.exe -I C:/Program\ Files/Puppet\ Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0 -r ./siteconf20220727-17072-la23zl.rb extconf.rb
C:/Program Files/Puppet Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- devkit (LoadError)
from C:/Program Files/Puppet Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from extconf.rb:7:in `<main>'
extconf failed, exit code 1
Dr Bunsen Honeydew
07/27/2022, 2:28 PMpuppetlabs-scheduled_task
module at https://forge.puppet.com/puppetlabs/scheduled_task?src=slack&channel=puppetKen Meservy
07/27/2022, 3:07 PMpdk validate
and I'm running into an error. I've tried several different fixes for what I'm running into and can't seem to get around it, pdk bundle update
& pdk bundle install
also error with the same message:
The dependency puppet-module-posix-default-r2.7 (~> 1.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for x64-mingw32 but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
The dependency puppet-module-posix-dev-r2.7 (~> 1.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for x64-mingw32 but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
The dependency voxpupuli-puppet-lint-plugins (>= 3.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for x64-mingw32 but the dependency is only for ruby. To add those platforms to the bundle, run `bundle lock --add-platform ruby`.
The dependency puppet-module-posix-system-r2.7 (~> 1.0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for x64-mingw32 but the dependency is only for ruby. To add
those platforms to the bundle, run `bundle lock --add-platform ruby`.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/Users/mcswe/AppData/Local/PDK/cache/ruby/2.7.0/gems/nio4r-2.5.8/ext/nio4r
C:/Program\ Files/Puppet\ Labs/DevelopmentKit/private/ruby/2.7.6/bin/ruby.exe -I
C:/Program\ Files/Puppet\
Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0 -r
./siteconf20220727-13800-g7xe0j.rb extconf.rb
C:/Program Files/Puppet
Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in
`require': cannot load such file -- devkit (LoadError)
from C:/Program Files/Puppet
Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in
`require'
from extconf.rb:7:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in
C:/Users/mcswe/AppData/Local/PDK/cache/ruby/2.7.0/gems/nio4r-2.5.8 for
inspection.
Results logged to
C:/Users/mcswe/AppData/Local/PDK/cache/ruby/2.7.0/extensions/x64-mingw32/2.7.0/nio4r-2.5.8/gem_make.out
An error occurred while installing nio4r (2.5.8), and Bundler cannot continue.
Make sure that `gem install nio4r -v '2.5.8' --source '<https://rubygems.org/>'`
succeeds before bundling.
In Gemfile:
github_changelog_generator was resolved to 1.16.4, which depends on
async-http-faraday was resolved to 0.11.0, which depends on
async-http was resolved to 0.56.6, which depends on
async-io was resolved to 1.33.0, which depends on
async was resolved to 1.30.3, which depends on
nio4r
pdk (FATAL): Unable to install missing Gemfile dependencies.
I can't seem to get the pdk to install that nio4r gem. I've completely removed the pdk from my system and did a fresh install this morning & that didn't resolve it either. I can see other folks having trouble with getting this gem installed & that it requires the ruby devkit, but I'm not sure how the pdk handles that - if I install ruby & the devkit standalone I can install this gem just fine. My machine is running Windows 10 & I'm on pdk version 2.5.0. I think if I knew a bit more about how ruby worked I could figure this out but I'm kind of stuck at the moment.
Does anyone have any suggestions? Thanks!
Edit: This is the error message reported in my user cache:
C:/Program\ Files/Puppet\ Labs/DevelopmentKit/private/ruby/2.7.6/bin/ruby.exe -I C:/Program\ Files/Puppet\ Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0 -r ./siteconf20220727-17072-la23zl.rb extconf.rb
C:/Program Files/Puppet Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- devkit (LoadError)
from C:/Program Files/Puppet Labs/DevelopmentKit/private/ruby/2.7.6/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from extconf.rb:7:in `<main>'
extconf failed, exit code 1
Jason Grammenos
07/27/2022, 5:52 PM{
# Allow access to the certificate clean endpoint
match-request: {
path: "/puppet-ca/v1/clean"
type: path
method: put
}
allow: ["test01.internal"]
sort-order: 500
name: "cert clean from nodes"
},
Slackbot
07/27/2022, 5:53 PMSlackbot
07/27/2022, 6:45 PMSlackbot
07/27/2022, 7:19 PMSlackbot
07/27/2022, 7:41 PMDavid
07/27/2022, 7:42 PMroot@ldm-infrad52 # puppet apply /tmp/dm --logdest=console
Warning: Facter: Command /usr/bin/curl <http://prov.uk.gcb.corp/cgi-bin/remote-hquery.py?Hostname=>`uname -n`&results=Role| tr -cd '[:alpha:]' resulted with the following stderr message: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19 0 19 0 0 18 0 --:--:-- 0:00:01 --:--:-- 18
Warning: Facter: Command /usr/bin/curl <http://prov.uk.gcb.corp/cgi-bin/remote-hquery.py?Hostname=>`uname -n`&results=Role| tr -cd '[:alpha:]' resulted with the following stderr message: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19 0 19 0 0 18 0 --:--:-- 0:00:01 --:--:-- 18
Notice: Scope(Class[All_all_resolver]): ldm-infrad52 has a derivedsite of: TSQ
Notice: Compiled catalog for ldm-infrad52.dev.uk.gcb.corp in environment production in 0.38 seconds
Notice: /Stage[main]/All_all_resolver/Svccfg[svc:/network/dns/client/:properties/config/search]/ensure: created
Notice: /Stage[main]/All_all_resolver/Svccfg[svc:/network/dns/client/:properties/config/nameserver]/ensure: created
Notice: /Stage[main]/All_all_resolver/Svccfg[svc:/network/dns/client/:properties/config/options]/ensure: created
Notice: /Stage[main]/All_all_resolver/Service[svc:/network/dns/client:default]: Triggered 'refresh' from 3 events
Notice: Applied catalog in 18.06 seconds
Error: Could not run: undefined local variable or method `audit_handle' for #<Puppet::Application::Apply:0x0000000104c6f980>
So to me it looks as if the apply finished applying the catalog, but then gets this error. Tried googling but to no avail. I thought it was down to the reporting so I made sure that report was set to false in the puppet.conf.
Any ideas ?natemccurdy
07/27/2022, 8:03 PMuse-legacy-auth-conf
set in /etc/puppetlabs/puppetserver/conf.d/puppetserver.conf
?vchepkov
07/27/2022, 10:57 PMvchepkov
07/27/2022, 10:57 PMC:\ProgramData\PuppetLabs>facter os
{
architecture => "x64",
family => "windows",
hardware => "x86_64",
name => "windows",
release => {
full => "6.3.9600",
major => "6",
minor => "3"
},
windows => {
edition_id => "ServerStandard",
installation_type => "Server",
product_name => "Windows Server 2012 R2 Standard",
system32 => "C:\Windows\system32"
}
}
n3snah
07/27/2022, 10:59 PMvchepkov
07/27/2022, 11:00 PMn3snah
07/27/2022, 11:00 PMn3snah
07/27/2022, 11:00 PMn3snah
07/27/2022, 11:01 PMvchepkov
07/27/2022, 11:02 PMnatemccurdy
07/27/2022, 11:06 PMvchepkov
07/27/2022, 11:06 PMvchepkov
07/27/2022, 11:06 PMC:\Windows\system32>facter os
{
architecture => "x64",
family => "windows",
hardware => "x86_64",
name => "windows",
release => {
full => "2016",
major => "2016"
},
windows => {
edition_id => "ServerStandard",
installation_type => "Server",
product_name => "Windows Server 2016 Standard",
release_id => "1607",
system32 => "C:\Windows\system32"
}
}