Closed poquirion closed 1 year ago
It is not happy about line six of site/profile/manifests/consul.pp
...
1 class profile::consul::server {
2 $interface = profile::getlocalinterface()
3 $ipaddress = $facts['networking']['interfaces'][$interface]['ip']
4 $consul_servers = lookup('profile::consul::client::servers', undef, undef, [$ipaddress])
5
6 class { 'consul':
7 config_mode => '0640',
8 acl_api_token => lookup('profile::consul::acl_api_token'),
9 config_hash => {
10 'bootstrap_expect' => length($consul_servers),
Could not find declared class consul Typically, this means librarian-puppet was unable to install the consul module under:
/etc/puppetlabs/code/environment/production/modules
The installation of the module is unrelated to portal-12 branch and the log of the installation can be found in /var/log/cloud-init-output.log.
Can you verify consul
module is missing from the modules
folder and check in the log what has happened if it is the case?
The /etc/puppetlabs/code/environment/production/modules
folder has not even been created.
I was trying to debug and just assume that it was a deployement without a module
folder! So I was wrong:
here is the problem:
[root@mgmt1 production]# grep -A 5 ERROR /var/log/cloud-init-output.log
ERROR: Error installing librarian-puppet:
The last version of faraday-net_http (< 3.1, >= 2.0) to support your Ruby & RubyGems was 2.1.0. Try installing it with `gem install faraday-net_http -v 2.1.0` and then running the current command again
faraday-net_http requires Ruby version >= 2.6.0. The current ruby version is 2.5.0.
This should have been fixed in release 12.5.0. Which version are you using?
The rebased portal-12 branch. It must be a regression
The change is not in the puppet code, but in the Terraform / cloud-init code. So you need to upgrade the ref of your main.tf.
I did not realized that terraform init
was not enough. I ran terraform get -update
and it solved my problem.
On mgmt node:
I deployed and I get:
seems that it did not like the rebase.