Closed olevole closed 5 years ago
Quick and dirty solution via exec/grep and FreeBSD sysrc ;-)
diff -ruN network/interface/cloned.pp-o network/interface/cloned.pp
--- network/interface/cloned.pp-o 2019-07-17 19:11:23.439128961 +0300
+++ network/interface/cloned.pp 2019-07-17 21:27:42.518097285 +0300
@@ -18,6 +18,17 @@
$if_type = $name.match(/^(.*)(\d+)/)[1]
if $if_type in $facts['cloned_interfaces'] {
+
+ exec {"trunk_cloned_present":
+ command => "/usr/sbin/sysrc cloned_interfaces+=${name}",
+ unless => "/usr/sbin/sysrc -qn cloned_interface | /usr/bin/egrep -E \"${name}(\$|[ ])\"",
+ }
+
+ exec {"trunk_cloned_absent":
+ command => "/usr/sbin/sysrc cloned_interfaces-=${name}",
+ onlyif => "/usr/sbin/sysrc -qn cloned_interface | /usr/bin/egrep -E \"${name}(\$|[ ])\"",
+ }
+
shellvar { "cloned_interfaces_${name}":
ensure => $cloned_ensure,
variable => 'cloned_interfaces',
@@ -25,6 +36,7 @@
value => $name,
array_append => true,
notify => Bsd_interface[$name],
+ notify => Exec["trunk_cloned_${cloned_ensure}"],
}
}
but I can't look at it without tears ;)
Hmm, thanks for the report. I can double check this, since I think I still have some trunk interfaces on FreeBSD machines to test with. My laptop is in the shop, but maybe by this weekend or next I can take a look closer.
@olevole Are you in a position to try the branch trunktest
of this module? I've just changed some syntax a bit and things work over here on the one 12-RELEASE box that I tested it on. Note that my default gateway did not come back after applying this change, so you might want to take that into consideration in your testing before doing so. I also added a test that was broken, and now is passing, so maybe it works for you too.
Let me know how it goes. I suspect that perhaps the vlan
interface suffers from the same issue.
@xaque208 Zach, Thanks for the quick response.
I tested the following configuration with trunktest branch ( last commit 0e82ac4101a912e13c85b635aeda6a850abfc845 )
bsd::network::interface::trunk { 'lagg10':
interface => [ 'vtnet1', 'vtnet2' ],
address => [ '10.10.10.10/24' ],
}
But still no cloned_interface settings:
root@og1:/usr/home/freebsd # diff -ruN /etc/rc.conf.orig /etc/rc.conf
--- /etc/rc.conf.orig 2019-07-31 03:18:50.008899000 +0300
+++ /etc/rc.conf 2019-07-31 03:35:21.764626000 +0300
@@ -7,3 +7,4 @@
sshd_flags="-oUseDNS=no"
cloudinitlocal_enable="YES"
dumpdev="AUTO"
+ifconfig_lagg10="inet 10.10.10.10/24 laggproto lacp laggport vtnet1 laggport vtnet2"
and as a result - the lagg10 interface is missing after a reboot
If i try to add bsd::network::interface::cloned:
% cat /etc/puppetlabs/code/environments/production/modules/vstack_network/manifests/init.pp
class vstack_network
{
bsd::network::interface::cloned { 'lagg10':
ensure => present,
}
bsd::network::interface::trunk { 'lagg10':
interface => [ 'vtnet1', 'vtnet2' ],
address => [ '10.10.10.10/24' ],
}
}
I still get a conflict:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Bsd::Network::Interface::Cloned[lagg10] is already declared at (file: /etc/puppetlabs/code/environments/production/modules/vstack_network/manifests/init.pp, line: 3); cannot redeclare (file: /etc/puppetlabs/code/environments/production/modules/bsd/manifests/network/interface.pp, line: 122) (file: /etc/puppetlabs/code/environments/production/modules/bsd/manifests/network/interface.pp, line: 122, column: 7) (file: /etc/puppetlabs/code/environments/production/modules/bsd/manifests/network/interface/trunk.pp, line: 41) on node og1.my.domain
Remove the bsd::network::interface::cloned
resource and try again. That resource should be created for you.
Oh i missed your first comment. Which puppet version, and FreeBSD version? What does facter -p cloned_interfaces
give you?
client puppet agent: puppet6-6.6.0 client os: FreeBSD 12.0 and 13-CURRENT puppet server ( if it matters ): 6.5.0 , CentOS
% facter -p cloned_interfaces
[
"lagg",
"vlan",
"ipsec",
"gif",
"tun",
"lo",
"usbus",
"wlan"
]
% cat /etc/rc.conf
cloudfinal_enable="YES"
ifconfig_vtnet0="10.78.67.230 netmask 255.255.255.0"
hostname="og1.my.domain"
cloudinit_enable="YES"
defaultrouter="10.78.67.1"
sshd_enable="YES"
sshd_flags="-oUseDNS=no"
cloudinitlocal_enable="YES"
dumpdev="AUTO"
ifconfig_lagg10="inet 10.10.10.10/24 laggproto lacp laggport vtnet1 laggport vtnet2"
% ifconfig
vtnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
ether 00:a0:98:59:a6:8e
inet 10.78.67.230 netmask 0xffffff00 broadcast 10.78.67.255
media: Ethernet 10Gbase-T <full-duplex>
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
vtnet1: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=6c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:a0:98:91:52:31
media: Ethernet 10Gbase-T <full-duplex>
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
vtnet2: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=6c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:a0:98:77:67:3f
media: Ethernet 10Gbase-T <full-duplex>
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Do you by chance have any /etc/rc.conf.d/*
files? I'm confused because it works here, and the tests in the PR say the resource exists too. Note that you get the resource conflict, so we know the resource is in the catalog. Maybe are you missing augeas? Can you confirm that you have all the dependencies listed here: https://github.com/xaque208/puppet-bsd/blob/master/metadata.json#L33
yes, I am sure. I checked on another FreeBSD 13 server without puppetserver:
puppet module install zleslie-bsd --version 2.3.0
rm -rf /usr/local/etc/puppet/modules/bsd
git clone https://github.com/xaque208/puppet-bsd.git /usr/local/etc/puppet/modules/bsd
gem install ipaddress
cat > lagg.pp <<EOF
bsd::network::interface::trunk { 'lagg10':
interface => [ 'vlan10', 'vlan11' ],
address => [ '10.0.0.1/24' ],
}
EOF
puppet apply lagg.pp
and still no luck. /etc/rc.conf.d is empty. on which version of FreeBSD did you check? I will try to check it
I'm on 12-RELEASE. May I have the debug output from that apply please?
Full step-by-step log on installed FreeBSD 12.0-RELEASE from scratch:
===
uname -a
FreeBSD freebsd1.my.domain 12.0-RELEASE-p9 FreeBSD 12.0-RELEASE-p9 GENERIC amd64
===
pkg install -y puppet6
Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. Updating database digests format: 100% The following 25 package(s) will be affected (of 0 checked):
New packages to be INSTALLED: puppet6: 6.6.0 rubygem-ruby-augeas: 0.5.0_2 augeas: 1.12.0_1 ruby: 2.5.5_2,1 libyaml: 0.2.2 libunwind: 20170615 libedit: 3.1.20190324,1 ruby25-gems: 3.0.4 rubygem-hiera: 3.4.5 facter: 3.14.1 curl: 7.65.1 libnghttp2: 1.39.1 yaml-cpp: 0.6.2_1 leatherman: 1.7.0 boost-libs: 1.70.0_2 icu: 64.2,1 cpp-hocon: 0.2.1_3 rubygem-semantic_puppet: 1.0.2 rubygem-json_pure: 2.1.0 rubygem-hocon: 1.2.5 rubygem-gettext-setup: 0.30_1 rubygem-locale: 2.1.2 rubygem-gettext: 3.2.6 rubygem-text: 1.3.1 rubygem-fast_gettext1: 1.8.0
Number of packages to be installed: 25
The process will require 279 MiB more space. 36 MiB to be downloaded. [1/25] Fetching puppet6-6.6.0.txz: 100% 1 MiB 404.8kB/s 00:03
[2/25] Fetching rubygem-ruby-augeas-0.5.0_2.txz: 100% 22 KiB 22.5kB/s 00:01
[3/25] Fetching augeas-1.12.0_1.txz: 100% 673 KiB 344.4kB/s 00:02
[4/25] Fetching ruby-2.5.5_2,1.txz: 100% 7 MiB 601.1kB/s 00:13
[5/25] Fetching libyaml-0.2.2.txz: 100% 70 KiB 71.3kB/s 00:01
[6/25] Fetching libunwind-20170615.txz: 100% 117 KiB 119.5kB/s 00:01
[7/25] Fetching libedit-3.1.20190324,1.txz: 100% 132 KiB 135.2kB/s 00:01
[8/25] Fetching ruby25-gems-3.0.4.txz: 100% 398 KiB 204.0kB/s 00:02
[9/25] Fetching rubygem-hiera-3.4.5.txz: 100% 35 KiB 36.1kB/s 00:01
[10/25] Fetching facter-3.14.1.txz: 100% 477 KiB 244.4kB/s 00:02
[11/25] Fetching curl-7.65.1.txz: 100% 1 MiB 418.9kB/s 00:03
[12/25] Fetching libnghttp2-1.39.1.txz: 100% 115 KiB 117.4kB/s 00:01
[13/25] Fetching yaml-cpp-0.6.2_1.txz: 100% 117 KiB 119.8kB/s 00:01
[14/25] Fetching leatherman-1.7.0.txz: 100% 679 KiB 347.5kB/s 00:02
[15/25] Fetching boost-libs-1.70.0_2.txz: 100% 12 MiB 714.5kB/s 00:18
[16/25] Fetching icu-64.2,1.txz: 100% 10 MiB 794.7kB/s 00:13
[17/25] Fetching cpp-hocon-0.2.1_3.txz: 100% 303 KiB 310.7kB/s 00:01
[18/25] Fetching rubygem-semantic_puppet-1.0.2.txz: 100% 26 KiB 26.7kB/s 00:01
[19/25] Fetching rubygem-json_pure-2.1.0.txz: 100% 95 KiB 97.3kB/s 00:01
[20/25] Fetching rubygem-hocon-1.2.5.txz: 100% 122 KiB 125.0kB/s 00:01
[21/25] Fetching rubygem-gettext-setup-0.30_1.txz: 100% 18 KiB 18.0kB/s 00:01
[22/25] Fetching rubygem-locale-2.1.2.txz: 100% 96 KiB 98.7kB/s 00:01
[23/25] Fetching rubygem-gettext-3.2.6.txz: 100% 195 KiB 200.0kB/s 00:01
[24/25] Fetching rubygem-text-1.3.1.txz: 100% 99 KiB 101.5kB/s 00:01
[25/25] Fetching rubygem-fast_gettext1-1.8.0.txz: 100% 23 KiB 23.5kB/s 00:01
Checking integrity... done (0 conflicting) [1/25] Installing libyaml-0.2.2... [1/25] Extracting libyaml-0.2.2: 100% [2/25] Installing libunwind-20170615... [2/25] Extracting libunwind-20170615: 100% [3/25] Installing libedit-3.1.20190324,1... [3/25] Extracting libedit-3.1.20190324,1: 100% [4/25] Installing ruby-2.5.5_2,1... [4/25] Extracting ruby-2.5.5_2,1: 100% [5/25] Installing libnghttp2-1.39.1... [5/25] Extracting libnghttp2-1.39.1: 100% [6/25] Installing icu-64.2,1... [6/25] Extracting icu-64.2,1: 100% [7/25] Installing ruby25-gems-3.0.4... [7/25] Extracting ruby25-gems-3.0.4: 100% [8/25] Installing curl-7.65.1... [8/25] Extracting curl-7.65.1: 100% [9/25] Installing boost-libs-1.70.0_2... [9/25] Extracting boost-libs-1.70.0_2: 100% [10/25] Installing leatherman-1.7.0... [10/25] Extracting leatherman-1.7.0: 100% [11/25] Installing rubygem-locale-2.1.2... [11/25] Extracting rubygem-locale-2.1.2: 100% [12/25] Installing rubygem-text-1.3.1... [12/25] Extracting rubygem-text-1.3.1: 100% [13/25] Installing augeas-1.12.0_1... [13/25] Extracting augeas-1.12.0_1: 100% [14/25] Installing yaml-cpp-0.6.2_1... [14/25] Extracting yaml-cpp-0.6.2_1: 100% [15/25] Installing cpp-hocon-0.2.1_3... [15/25] Extracting cpp-hocon-0.2.1_3: 100% [16/25] Installing rubygem-gettext-3.2.6... [16/25] Extracting rubygem-gettext-3.2.6: 100% [17/25] Installing rubygem-fast_gettext1-1.8.0... [17/25] Extracting rubygem-fast_gettext1-1.8.0: 100% [18/25] Installing rubygem-ruby-augeas-0.5.0_2... [18/25] Extracting rubygem-ruby-augeas-0.5.0_2: 100% [19/25] Installing rubygem-hiera-3.4.5... [19/25] Extracting rubygem-hiera-3.4.5: 100% [20/25] Installing facter-3.14.1... [20/25] Extracting facter-3.14.1: 100% [21/25] Installing rubygem-semantic_puppet-1.0.2... [21/25] Extracting rubygem-semantic_puppet-1.0.2: 100% [22/25] Installing rubygem-json_pure-2.1.0... [22/25] Extracting rubygem-json_pure-2.1.0: 100% [23/25] Installing rubygem-hocon-1.2.5... [23/25] Extracting rubygem-hocon-1.2.5: 100% [24/25] Installing rubygem-gettext-setup-0.30_1... [24/25] Extracting rubygem-gettext-setup-0.30_1: 100% [25/25] Installing puppet6-6.6.0... ===> Creating groups. Creating group 'puppet' with gid '814'. ===> Creating users Creating user 'puppet' with uid '814'. [25/25] Extracting puppet6-6.6.0: 100% Message from ruby-2.5.5_2,1:==== Some of the standard commands are provided as separate ports for ease of upgrading:
devel/ruby-gems: gem - RubyGems package manager devel/rubygem-rake: rake - Ruby Make
And some of the standard libraries are provided as separate ports since they require extra dependencies:
databases/rubygem-dbm: DBM module databases/rubygem-gdbm: GDBM module
Install them as occasion demands.
Message from boost-libs-1.70.0_2:
You have built the Boost library with thread support.
Don't forget to add -pthread to your linker options when linking your code. Message from puppet6-6.6.0:
To enable the puppet agent, add the following to /etc/rc.conf:
puppet_enable="YES"
The default PID directory is /var/run/puppet
===
puppet module install zleslie-bsd --version 2.3.0
Notice: Preparing to install into /usr/local/etc/puppet/modules ... Notice: Downloading from https://forgeapi.puppet.com ... Notice: Installing -- do not interrupt ... /usr/local/etc/puppet/modules └─┬ zleslie-bsd (v2.3.0) ├── herculesteam-augeasproviders_core (v2.5.0) ├── herculesteam-augeasproviders_shellvar (v4.0.0) ├── herculesteam-augeasproviders_sysctl (v2.3.1) ├─┬ puppetlabs-concat (v6.1.0) │ ├── puppetlabs-stdlib (v6.0.0) │ └── puppetlabs-translate (v2.0.0) └── thrnio-ip (v1.0.1)
===
rm -rf /usr/local/etc/puppet/modules/bsd
/usr/local/bin/git clone https://github.com/xaque208/puppet-bsd.git /usr/local/etc/puppet/modules/bsd
Cloning into '/usr/local/etc/puppet/modules/bsd'... remote: Enumerating objects: 137, done. remote: Counting objects: 100% (137/137), done. remote: Compressing objects: 100% (111/111), done. remote: Total 2119 (delta 46), reused 61 (delta 20), pack-reused 1982 Receiving objects: 100% (2119/2119), 353.77 KiB | 700.00 KiB/s, done. Resolving deltas: 100% (1032/1032), done.
===
gem install ipaddress
Fetching ipaddress-0.8.3.gem Successfully installed ipaddress-0.8.3 Parsing documentation for ipaddress-0.8.3 Installing ri documentation for ipaddress-0.8.3 Done installing documentation for ipaddress after 0 seconds 1 gem installed
===
cat > lagg.pp <<EOF
bsd::network::interface::trunk { 'lagg10':
interface => [ 'vlan10', 'vlan11' ],
address => [ '10.0.0.1/24' ],
}
EOF
===
puppet apply lagg.pp --log_level=debug
Debug: Caching environment 'production' (ttl = 0 sec) Debug: Evicting cache entry for environment 'production' Debug: Deleted text domain :production: false Debug: Caching environment 'production' (ttl = 0 sec) Debug: Caching environment 'production' (ttl = 0 sec) Debug: Applying settings catalog for sections main, agent, ssl Debug: Could not find library 'selinux' required to enable feature 'selinux' Debug: Using settings: adding file resource 'confdir': 'File[/usr/local/etc/puppet]{:path=>"/usr/local/etc/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Facter: searching for custom fact "operatingsystem". Debug: Facter: searching for operatingsystem.rb in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for operatingsystem.rb in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: searching for operatingsystem.rb in /var/puppet/lib/facter. Debug: Facter: searching for operatingsystem.rb in /var/puppet/facts. Debug: Facter: fact "facterversion" has resolved to "3.14.1". Debug: Facter: skipping external facts for "/opt/puppetlabs/facter/facts.d": No such file or directory Debug: Facter: skipping external facts for "/etc/facter/facts.d": No such file or directory Debug: Facter: skipping external facts for "/etc/puppetlabs/facter/facts.d": No such file or directory Debug: Facter: skipping external facts for "/usr/local/etc/facter/facts.d": No such file or directory Debug: Facter: skipping external facts for "/usr/local/etc/puppetlabs/facter/facts.d": No such file or directory Debug: Facter: no external facts were found. Debug: Facter: resolving operating system facts. Debug: Facter: resolving kernel facts. Debug: Facter: fact "kernel" has resolved to "FreeBSD". Debug: Facter: fact "kernelrelease" has resolved to "12.0-RELEASE-p9". Debug: Facter: fact "kernelmajversion" has resolved to "12". Debug: Facter: fact "kernelversion" has resolved to "12.0". Debug: Facter: executing command: /bin/freebsd-version Debug: Facter: 12.0-RELEASE-p9 Debug: Facter: process exited with status code 0. Debug: Facter: fact "osfamily" has resolved to "FreeBSD". Debug: Facter: fact "operatingsystemmajrelease" has resolved to "12". Debug: Facter: fact "operatingsystemrelease" has resolved to "12.0-RELEASE-p9". Debug: Facter: fact "hardwaremodel" has resolved to "amd64". Debug: Facter: fact "architecture" has resolved to "amd64". Debug: Facter: fact "operatingsystem" has resolved to "FreeBSD". Debug: Facter: fact "os" has resolved to { architecture => "amd64",
family => "FreeBSD",
hardware => "amd64",
name => "FreeBSD",
release => {
full => "12.0-RELEASE-p9",
major => "12",
minor => "0-RELEASE-p9"
}
}.
Debug: Could not find library 'shadow' required to enable feature 'libshadow' Debug: Could not find library 'cfpropertylist' required to enable feature 'cfpropertylist' Debug: Could not find library 'ldap' required to enable feature 'ldap' Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing Debug: Puppet::Type::User::ProviderUseradd: file useradd does not exist Debug: Puppet::Type::User::ProviderOpenbsd: file useradd does not exist Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/uuidgen does not exist Debug: Puppet::Type::User::ProviderUser_role_add: file useradd does not exist Debug: /User[puppet]: Provider pw does not support features libuser; not managing attribute forcelocal Debug: Puppet::Type::Group::ProviderGroupadd: file groupadd does not exist Debug: Puppet::Type::Group::ProviderDirectoryservice: file /usr/bin/dscl does not exist Debug: Puppet::Type::Group::ProviderLdap: feature ldap is missing Debug: /Group[puppet]: Provider pw does not support features libuser; not managing attribute forcelocal Debug: Using settings: adding file resource 'vardir': 'File[/var/puppet]{:path=>"/var/puppet", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'logdir': 'File[/var/log/puppet]{:path=>"/var/log/puppet", :mode=>"750", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'statedir': 'File[/var/puppet/state]{:path=>"/var/puppet/state", :mode=>"1755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'rundir': 'File[/var/run/puppet]{:path=>"/var/run/puppet", :mode=>"755", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'libdir': 'File[/var/puppet/lib]{:path=>"/var/puppet/lib", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'preview_outputdir': 'File[/var/puppet/preview]{:path=>"/var/puppet/preview", :mode=>"750", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'certdir': 'File[/var/puppet/ssl/certs]{:path=>"/var/puppet/ssl/certs", :mode=>"755", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'ssldir': 'File[/var/puppet/ssl]{:path=>"/var/puppet/ssl", :mode=>"771", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'publickeydir': 'File[/var/puppet/ssl/public_keys]{:path=>"/var/puppet/ssl/public_keys", :mode=>"755", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'requestdir': 'File[/var/puppet/ssl/certificate_requests]{:path=>"/var/puppet/ssl/certificate_requests", :mode=>"755", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'privatekeydir': 'File[/var/puppet/ssl/private_keys]{:path=>"/var/puppet/ssl/private_keys", :mode=>"750", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'privatedir': 'File[/var/puppet/ssl/private]{:path=>"/var/puppet/ssl/private", :mode=>"750", :owner=>"puppet", :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Facter: searching for custom fact "hostname". Debug: Facter: searching for hostname.rb in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for hostname.rb in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: searching for hostname.rb in /var/puppet/lib/facter. Debug: Facter: searching for hostname.rb in /var/puppet/facts. Debug: Facter: resolving networking facts. Debug: Facter: using the FQDN returned by gethostname: freebsd1.my.domain. Debug: Facter: executing command: /sbin/route -n get default Debug: Facter: route to: 0.0.0.0 Debug: Facter: destination: 0.0.0.0 Debug: Facter: mask: 0.0.0.0 Debug: Facter: gateway: 172.16.0.1 Debug: Facter: fib: 0 Debug: Facter: interface: vtnet0 Debug: Facter: completed processing output: closing child pipes. Debug: Facter: process exited with status code 0. Debug: Facter: got primary interface: "vtnet0" Debug: Facter: searching "/var/lib/dhclient" for dhclient lease files. Debug: Facter: searching "/var/lib/dhcp" for dhclient lease files. Debug: Facter: searching "/var/lib/dhcp3" for dhclient lease files. Debug: Facter: searching "/var/lib/NetworkManager" for dhclient lease files. Debug: Facter: searching "/var/db" for dhclient lease files. Debug: Facter: searching "/var/lib/NetworkManager" for NetworkManager internal lease files Debug: Facter: executing command: dhcpcd -U lo0 Debug: Facter: dhcpcd was not found on the PATH. Debug: Facter: executing command: dhcpcd -U vtnet0 Debug: Facter: dhcpcd was not found on the PATH. Debug: Facter: fact "ipaddress_lo0" has resolved to "127.0.0.1". Debug: Facter: fact "netmask_lo0" has resolved to "255.0.0.0". Debug: Facter: fact "network_lo0" has resolved to "127.0.0.0". Debug: Facter: fact "ipaddress6_lo0" has resolved to "::1". Debug: Facter: fact "netmask6_lo0" has resolved to "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff". Debug: Facter: fact "network6_lo0" has resolved to "::1". Debug: Facter: fact "mtu_lo0" has resolved to 16384. Debug: Facter: fact "ipaddress_vtnet0" has resolved to "172.16.0.2". Debug: Facter: fact "ipaddress" has resolved to "172.16.0.2". Debug: Facter: fact "netmask_vtnet0" has resolved to "255.255.255.0". Debug: Facter: fact "netmask" has resolved to "255.255.255.0". Debug: Facter: fact "network_vtnet0" has resolved to "172.16.0.0". Debug: Facter: fact "network" has resolved to "172.16.0.0". Debug: Facter: fact "macaddress_vtnet0" has resolved to "00:a0:98:32:4b:a8". Debug: Facter: fact "macaddress" has resolved to "00:a0:98:32:4b:a8". Debug: Facter: fact "mtu_vtnet0" has resolved to 1500. Debug: Facter: fact "hostname" has resolved to "freebsd1". Debug: Facter: fact "domain" has resolved to "my.domain". Debug: Facter: fact "fqdn" has resolved to "freebsd1.my.domain". Debug: Facter: fact "interfaces" has resolved to "lo0,vtnet0". Debug: Facter: fact "networking" has resolved to { domain => "my.domain",
fqdn => "freebsd1.my.domain",
hostname => "freebsd1",
interfaces => {
lo0 => {
bindings => [
{
address => "127.0.0.1",
netmask => "255.0.0.0",
network => "127.0.0.0"
}
],
bindings6 => [
{
address => "::1",
netmask => "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
network => "::1"
},
{
address => "fe80::1",
netmask => "ffff:ffff:ffff:ffff::",
network => "fe80::"
}
],
ip => "127.0.0.1",
ip6 => "::1",
mtu => 16384,
netmask => "255.0.0.0",
netmask6 => "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
network => "127.0.0.0",
network6 => "::1"
},
vtnet0 => {
bindings => [
{
address => "172.16.0.2",
netmask => "255.255.255.0",
network => "172.16.0.0"
}
],
ip => "172.16.0.2",
mac => "00:a0:98:32:4b:a8",
mtu => 1500,
netmask => "255.255.255.0",
network => "172.16.0.0"
}
},
ip => "172.16.0.2",
mac => "00:a0:98:32:4b:a8",
mtu => 1500,
netmask => "255.255.255.0",
network => "172.16.0.0",
primary => "vtnet0"
}.
Debug: Facter: searching for custom fact "domain". Debug: Facter: searching for domain.rb in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for domain.rb in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: searching for domain.rb in /var/puppet/lib/facter. Debug: Facter: searching for domain.rb in /var/puppet/facts. Debug: Using settings: adding file resource 'clientyamldir': 'File[/var/puppet/client_yaml]{:path=>"/var/puppet/client_yaml", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'client_datadir': 'File[/var/puppet/client_data]{:path=>"/var/puppet/client_data", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'clientbucketdir': 'File[/var/puppet/clientbucket]{:path=>"/var/puppet/clientbucket", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'graphdir': 'File[/var/puppet/state/graphs]{:path=>"/var/puppet/state/graphs", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'pluginfactdest': 'File[/var/puppet/facts.d]{:path=>"/var/puppet/facts.d", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'localedest': 'File[/var/puppet/locales]{:path=>"/var/puppet/locales", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: /File[/var/puppet/state]: Adding autorequire relationship with File[/var/puppet] Debug: /File[/var/puppet/lib]: Adding autorequire relationship with File[/var/puppet] Debug: /File[/var/puppet/preview]: Adding autorequire relationship with File[/var/puppet] Debug: /File[/var/puppet/ssl/certs]: Adding autorequire relationship with File[/var/puppet/ssl] Debug: /File[/var/puppet/ssl]: Adding autorequire relationship with File[/var/puppet] Debug: /File[/var/puppet/ssl/public_keys]: Adding autorequire relationship with File[/var/puppet/ssl] Debug: /File[/var/puppet/ssl/certificate_requests]: Adding autorequire relationship with File[/var/puppet/ssl] Debug: /File[/var/puppet/ssl/private_keys]: Adding autorequire relationship with File[/var/puppet/ssl] Debug: /File[/var/puppet/ssl/private]: Adding autorequire relationship with File[/var/puppet/ssl] Debug: /File[/var/puppet/client_yaml]: Adding autorequire relationship with File[/var/puppet] Debug: /File[/var/puppet/client_data]: Adding autorequire relationship with File[/var/puppet] Debug: /File[/var/puppet/clientbucket]: Adding autorequire relationship with File[/var/puppet] Debug: /File[/var/puppet/state/graphs]: Adding autorequire relationship with File[/var/puppet/state] Debug: /File[/var/puppet/facts.d]: Adding autorequire relationship with File[/var/puppet] Debug: /File[/var/puppet/locales]: Adding autorequire relationship with File[/var/puppet] Debug: /File[/var/log/puppet]/mode: mode changed '0755' to '0750' Debug: /File[/var/puppet/state]/ensure: created Debug: /File[/var/run/puppet]/owner: owner changed 'root' to 'puppet' Debug: /File[/var/run/puppet]/group: group changed 'wheel' to 'puppet' Debug: /File[/var/puppet/lib]/ensure: created Debug: /File[/var/puppet/preview]/ensure: created Debug: /File[/var/puppet/ssl]/ensure: created Debug: /File[/var/puppet/ssl/certs]/ensure: created Debug: /File[/var/puppet/ssl/public_keys]/ensure: created Debug: /File[/var/puppet/ssl/certificate_requests]/ensure: created Debug: /File[/var/puppet/ssl/private_keys]/ensure: created Debug: /File[/var/puppet/ssl/private]/ensure: created Debug: /File[/var/puppet/client_yaml]/ensure: created Debug: /File[/var/puppet/client_data]/ensure: created Debug: /File[/var/puppet/clientbucket]/ensure: created Debug: /File[/var/puppet/state/graphs]/ensure: created Debug: /File[/var/puppet/facts.d]/ensure: created Debug: /File[/var/puppet/locales]/ensure: created Debug: Finishing transaction 17218977280 Debug: Runtime environment: puppet_version=6.6.0, ruby_version=2.5.5, run_mode=user, default_encoding=US-ASCII Debug: Loading external facts from /var/puppet/facts.d Debug: Facter: loading external fact directories from config file Info: Loading facts Debug: Loading facts from /usr/local/etc/puppet/modules/bsd/lib/facter/cloned_interfaces.rb Info: Loading facts Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/package_provider.rb Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/pe_version.rb Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/puppet_settings.rb Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/root_home.rb Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/service_provider.rb Info: Loading facts Debug: Loading facts from /usr/local/etc/puppet/modules/bsd/lib/facter/cloned_interfaces.rb Info: Loading facts Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/package_provider.rb Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/pe_version.rb Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/puppet_settings.rb Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/root_home.rb Debug: Loading facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/service_provider.rb Debug: Facter: fact "facterversion" has resolved to "3.14.1". Debug: Facter: skipping external facts for "/opt/puppetlabs/facter/facts.d": No such file or directory Debug: Facter: skipping external facts for "/etc/facter/facts.d": No such file or directory Debug: Facter: skipping external facts for "/etc/puppetlabs/facter/facts.d": No such file or directory Debug: Facter: skipping external facts for "/usr/local/etc/facter/facts.d": No such file or directory Debug: Facter: skipping external facts for "/usr/local/etc/puppetlabs/facter/facts.d": No such file or directory Debug: Facter: searching "/var/puppet/facts.d" for external facts. Debug: Facter: no external facts were found. Debug: Facter: loading all custom facts. Debug: Facter: loading custom fact directories from config file Debug: Facter: searching for custom facts in /usr/local/etc/puppet/modules/bsd/lib/facter. Info: Facter: loading custom facts from /usr/local/etc/puppet/modules/bsd/lib/facter/cloned_interfaces.rb. Debug: Facter: searching for custom facts in /usr/local/etc/puppet/modules/stdlib/lib/facter. Info: Facter: loading custom facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb. Info: Facter: loading custom facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/package_provider.rb. Debug: Reloading pip package provider Debug: Reloading gem package provider Info: Facter: loading custom facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/pe_version.rb. Info: Facter: loading custom facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/puppet_settings.rb. Info: Facter: loading custom facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/root_home.rb. Info: Facter: loading custom facts from /usr/local/etc/puppet/modules/stdlib/lib/facter/service_provider.rb. Debug: Facter: searching for custom fact "operatingsystem". Debug: Facter: searching for operatingsystem.rb in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for operatingsystem.rb in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: searching for operatingsystem.rb in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for operatingsystem.rb in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: searching for operatingsystem.rb in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for operatingsystem.rb in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: resolving operating system facts. Debug: Facter: resolving kernel facts. Debug: Facter: fact "kernel" has resolved to "FreeBSD". Debug: Facter: fact "kernelrelease" has resolved to "12.0-RELEASE-p9". Debug: Facter: fact "kernelmajversion" has resolved to "12". Debug: Facter: fact "kernelversion" has resolved to "12.0". Debug: Facter: executing command: /bin/freebsd-version Debug: Facter: 12.0-RELEASE-p9 Debug: Facter: process exited with status code 0. Debug: Facter: fact "osfamily" has resolved to "FreeBSD". Debug: Facter: fact "operatingsystemmajrelease" has resolved to "12". Debug: Facter: fact "operatingsystemrelease" has resolved to "12.0-RELEASE-p9". Debug: Facter: fact "hardwaremodel" has resolved to "amd64". Debug: Facter: fact "architecture" has resolved to "amd64". Debug: Facter: fact "operatingsystem" has resolved to "FreeBSD". Debug: Facter: fact "os" has resolved to { architecture => "amd64",
family => "FreeBSD",
hardware => "amd64",
name => "FreeBSD",
release => {
full => "12.0-RELEASE-p9",
major => "12",
minor => "0-RELEASE-p9"
}
}.
Debug: Facter: searching for custom fact "osfamily". Debug: Facter: searching for osfamily.rb in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for osfamily.rb in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: searching for osfamily.rb in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for osfamily.rb in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: searching for osfamily.rb in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for osfamily.rb in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: searching for custom facts in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for custom facts in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: searching for custom facts in /usr/local/etc/puppet/modules/bsd/lib/facter. Debug: Facter: searching for custom facts in /usr/local/etc/puppet/modules/stdlib/lib/facter. Debug: Facter: fact "agent_specified_environment" resolved to null and will not be added. Debug: Facter: executing command: /bin/sh -c /sbin/ifconfig -C Debug: Facter: vlan ipsec gif tun lo usbus wlan Debug: Facter: process exited with status code 0. Debug: Facter: fact "cloned_interfaces" has resolved to [ "vlan",
"ipsec",
"gif",
"tun",
"lo",
"usbus",
"wlan"
].
Debug: Facter: fact "puppetversion" has resolved to "6.6.0". Debug: Facter: fact "pe_version" resolved to null and will not be added. Debug: Facter: fact "is_pe" has resolved to false. Debug: Puppet::Type::Package::ProviderOpenbsd: file pkg_info does not exist Debug: Puppet::Type::Package::ProviderFreebsd: file /usr/sbin/pkg_info does not exist Debug: Puppet::Type::Package::ProviderPorts: file /usr/local/sbin/portupgrade does not exist Debug: Puppet::Type::Package::ProviderRpm: file rpm does not exist Debug: Puppet::Type::Package::ProviderAptrpm: file apt-get does not exist Debug: Puppet::Type::Package::ProviderDpkg: file /usr/bin/dpkg does not exist Debug: Puppet::Type::Package::ProviderApt: file /usr/bin/apt-get does not exist Debug: Puppet::Type::Package::ProviderAptitude: file /usr/bin/aptitude does not exist Debug: Puppet::Type::Package::ProviderPortage: file /usr/bin/emerge does not exist Debug: Puppet::Type::Package::ProviderYum: file yum does not exist Debug: Puppet::Type::Package::ProviderDnf: file dnf does not exist Debug: Puppet::Type::Package::ProviderTdnf: file tdnf does not exist Debug: Puppet::Type::Package::ProviderOpkg: file opkg does not exist Debug: Puppet::Type::Package::ProviderAix: file /usr/bin/lslpp does not exist Debug: Puppet::Type::Package::ProviderNim: file /usr/sbin/nimclient does not exist Debug: Puppet::Type::Package::ProviderPkg: file /usr/bin/pkg does not exist Debug: Puppet::Type::Package::ProviderFink: file /sw/bin/fink does not exist Debug: Puppet::Type::Package::ProviderSun: file /usr/bin/pkginfo does not exist Debug: Puppet::Type::Package::ProviderZypper: file /usr/bin/zypper does not exist Debug: Puppet::Type::Package::ProviderPortupgrade: file /usr/local/sbin/portupgrade does not exist Debug: Puppet::Type::Package::ProviderHpux: file /usr/sbin/swinstall does not exist Debug: Puppet::Type::Package::ProviderSunfreeware: file pkg-get does not exist Debug: Puppet::Type::Package::ProviderUp2date: file /usr/sbin/up2date-nox does not exist Debug: Puppet::Type::Package::ProviderPkgin: file pkgin does not exist Debug: Puppet::Type::Package::ProviderUrpmi: file urpmi does not exist Debug: Puppet::Type::Package::ProviderPacman: file /usr/bin/pacman does not exist Debug: Puppet::Type::Package::ProviderRug: file /usr/bin/rug does not exist Debug: /Package[dummy]: Provider pkgng does not support features virtual_packages; not managing attribute allow_virtual Debug: /Package[dummy]: Provider pkgng does not support features targetable; not managing attribute command Debug: Facter: fact "package_provider" has resolved to "pkgng". Debug: Facter: fact "pe_major_version" resolved to null and will not be added. Debug: Facter: fact "pe_minor_version" resolved to null and will not be added. Debug: Facter: fact "pe_patch_version" resolved to null and will not be added. Debug: Facter: fact "puppet_environmentpath" has resolved to "/usr/local/etc/puppet/environments". Debug: Facter: fact "puppet_server" has resolved to "puppet". Debug: Facter: fact "puppet_vardir" has resolved to "/var/puppet". Debug: Facter: executing command: /bin/sh -c /usr/bin/getent passwd root Debug: Facter: root:*:0:0:Charlie &:/root:/bin/csh Debug: Facter: process exited with status code 0. Debug: Facter: fact "root_home" has resolved to "/root". Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist Debug: Puppet::Type::Service::ProviderDaemontools: file %%PREFIX%%/bin/svc does not exist Debug: Puppet::Type::Service::ProviderOpenbsd: file /usr/sbin/rcctl does not exist Debug: Puppet::Type::Service::ProviderRedhat: file /sbin/chkconfig does not exist Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist Debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist Debug: Puppet::Type::Service::ProviderUpstart: 0 confines (of 4) were true Debug: Puppet::Type::Service::ProviderSystemd: file systemctl does not exist Debug: Puppet::Type::Service::ProviderOpenrc: file /bin/rc-status does not exist Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist Debug: /Service[dummy]: Provider freebsd does not support features configurable_timeout; not managing attribute timeout Debug: Facter: fact "service_provider" has resolved to "freebsd". Debug: Facter: resolving ruby facts. Debug: Facter: fact "rubyplatform" has resolved to "amd64-freebsd12". Debug: Facter: fact "rubysitedir" has resolved to "/usr/local/lib/ruby/site_ruby/2.5". Debug: Facter: fact "rubyversion" has resolved to "2.5.5". Debug: Facter: fact "ruby" has resolved to { platform => "amd64-freebsd12",
sitedir => "/usr/local/lib/ruby/site_ruby/2.5",
version => "2.5.5"
}.
Debug: Facter: resolving path facts. Debug: Facter: fact "path" has resolved to "/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin". Debug: Facter: resolving EC2 facts. Debug: Facter: resolving virtualization facts. Debug: Facter: resolving desktop management interface facts. Debug: Facter: kenv lookup for smbios.bios.vendor Debug: Facter: kenv lookup for smbios.bios.version Debug: Facter: kenv lookup for smbios.bios.reldate Debug: Facter: kenv lookup for smbios.system.uuid Debug: Facter: kenv lookup for smbios.system.serial Debug: Facter: kenv lookup for smbios.system.product Debug: Facter: kenv lookup for smbios.system.maker Debug: Facter: fact "bios_vendor" has resolved to "BHYVE". Debug: Facter: fact "bios_version" has resolved to "1.00". Debug: Facter: fact "bios_release_date" has resolved to "03/14/2014". Debug: Facter: fact "productname" has resolved to "BHYVE". Debug: Facter: fact "serialnumber" has resolved to "None". Debug: Facter: fact "uuid" has resolved to "bb31f21d-9988-7438-86fa-050ee1925466". Debug: Facter: fact "manufacturer" has resolved to " ". Debug: Facter: fact "dmi" has resolved to { bios => {
release_date => "03/14/2014",
vendor => "BHYVE",
version => "1.00"
},
manufacturer => " ",
product => {
name => "BHYVE",
serial_number => "None",
uuid => "bb31f21d-9988-7438-86fa-050ee1925466"
}
}.
Debug: Facter: fact "is_virtual" has resolved to true. Debug: Facter: fact "virtual" has resolved to "bhyve". Debug: Facter: EC2 facts are unavailable: not running under an EC2 instance. Debug: Facter: resolving GCE facts. Debug: Facter: not running under a GCE instance. Debug: Facter: resolving augeas facts. Debug: Facter: executing command: /usr/local/bin/augparse --version Debug: Facter: augparse 1.12.0 http://augeas.net/ Debug: Facter: completed processing output: closing child pipes. Debug: Facter: process exited with status code 0. Debug: Facter: fact "augeasversion" has resolved to "1.12.0". Debug: Facter: fact "augeas" has resolved to { version => "1.12.0"
}.
Debug: Facter: resolving networking facts. Debug: Facter: using the FQDN returned by gethostname: freebsd1.my.domain. Debug: Facter: executing command: /sbin/route -n get default Debug: Facter: route to: 0.0.0.0 Debug: Facter: destination: 0.0.0.0 Debug: Facter: mask: 0.0.0.0 Debug: Facter: gateway: 172.16.0.1 Debug: Facter: fib: 0 Debug: Facter: interface: vtnet0 Debug: Facter: completed processing output: closing child pipes. Debug: Facter: process exited with status code 0. Debug: Facter: got primary interface: "vtnet0" Debug: Facter: searching "/var/lib/dhclient" for dhclient lease files. Debug: Facter: searching "/var/lib/dhcp" for dhclient lease files. Debug: Facter: searching "/var/lib/dhcp3" for dhclient lease files. Debug: Facter: searching "/var/lib/NetworkManager" for dhclient lease files. Debug: Facter: searching "/var/db" for dhclient lease files. Debug: Facter: searching "/var/lib/NetworkManager" for NetworkManager internal lease files Debug: Facter: executing command: dhcpcd -U lo0 Debug: Facter: dhcpcd was not found on the PATH. Debug: Facter: executing command: dhcpcd -U vtnet0 Debug: Facter: dhcpcd was not found on the PATH. Debug: Facter: fact "ipaddress_lo0" has resolved to "127.0.0.1". Debug: Facter: fact "netmask_lo0" has resolved to "255.0.0.0". Debug: Facter: fact "network_lo0" has resolved to "127.0.0.0". Debug: Facter: fact "ipaddress6_lo0" has resolved to "::1". Debug: Facter: fact "netmask6_lo0" has resolved to "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff". Debug: Facter: fact "network6_lo0" has resolved to "::1". Debug: Facter: fact "mtu_lo0" has resolved to 16384. Debug: Facter: fact "ipaddress_vtnet0" has resolved to "172.16.0.2". Debug: Facter: fact "ipaddress" has resolved to "172.16.0.2". Debug: Facter: fact "netmask_vtnet0" has resolved to "255.255.255.0". Debug: Facter: fact "netmask" has resolved to "255.255.255.0". Debug: Facter: fact "network_vtnet0" has resolved to "172.16.0.0". Debug: Facter: fact "network" has resolved to "172.16.0.0". Debug: Facter: fact "macaddress_vtnet0" has resolved to "00:a0:98:32:4b:a8". Debug: Facter: fact "macaddress" has resolved to "00:a0:98:32:4b:a8". Debug: Facter: fact "mtu_vtnet0" has resolved to 1500. Debug: Facter: fact "hostname" has resolved to "freebsd1". Debug: Facter: fact "domain" has resolved to "my.domain". Debug: Facter: fact "fqdn" has resolved to "freebsd1.my.domain". Debug: Facter: fact "interfaces" has resolved to "lo0,vtnet0". Debug: Facter: fact "networking" has resolved to { domain => "my.domain",
fqdn => "freebsd1.my.domain",
hostname => "freebsd1",
interfaces => {
lo0 => {
bindings => [
{
address => "127.0.0.1",
netmask => "255.0.0.0",
network => "127.0.0.0"
}
],
bindings6 => [
{
address => "::1",
netmask => "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
network => "::1"
},
{
address => "fe80::1",
netmask => "ffff:ffff:ffff:ffff::",
network => "fe80::"
}
],
ip => "127.0.0.1",
ip6 => "::1",
mtu => 16384,
netmask => "255.0.0.0",
netmask6 => "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
network => "127.0.0.0",
network6 => "::1"
},
vtnet0 => {
bindings => [
{
address => "172.16.0.2",
netmask => "255.255.255.0",
network => "172.16.0.0"
}
],
ip => "172.16.0.2",
mac => "00:a0:98:32:4b:a8",
mtu => 1500,
netmask => "255.255.255.0",
network => "172.16.0.0"
}
},
ip => "172.16.0.2",
mac => "00:a0:98:32:4b:a8",
mtu => 1500,
netmask => "255.255.255.0",
network => "172.16.0.0",
primary => "vtnet0"
}.
Debug: Facter: resolving uptime facts. Debug: Facter: fact "uptime_seconds" has resolved to 625. Debug: Facter: fact "uptime_hours" has resolved to 0. Debug: Facter: fact "uptime_days" has resolved to 0. Debug: Facter: fact "uptime" has resolved to "0:10 hours". Debug: Facter: fact "system_uptime" has resolved to { days => 0,
hours => 0,
seconds => 625,
uptime => "0:10 hours"
}.
Debug: Facter: resolving file system facts. Debug: Facter: Skipping config label because it has a null value Debug: Facter: Skipping config label because it has a null value Debug: Facter: fact "mountpoints" has resolved to { / => {
available => "16.98 GiB",
available_bytes => 18231914496,
capacity => "11.18%",
device => "/dev/vtbd0p2",
filesystem => "ufs",
options => [
"local",
"root"
],
size => "19.12 GiB",
size_bytes => 20527173632,
used => "2.14 GiB",
used_bytes => 2295259136
},
/dev => {
available => "0 bytes",
available_bytes => 0,
capacity => "100%",
device => "devfs",
filesystem => "devfs",
options => [
"local"
],
size => "1.00 KiB",
size_bytes => 1024,
used => "1.00 KiB",
used_bytes => 1024
}
}.
Debug: Facter: fact "filesystems" has resolved to "devfs,ufs". Debug: Facter: fact "partitions" has resolved to { vtbd0p1 => {
partuuid => "76f6a453-be85-11e9-bf62-00a098286ee2",
size => "260.00 MiB",
size_bytes => 272629760
},
vtbd0p2 => {
partuuid => "76ff9988-be85-11e9-bf62-00a098286ee2",
size => "19.75 GiB",
size_bytes => 21202296832
}
}.
Debug: Facter: resolving ssh facts. Debug: Facter: fact "sshdsakey" has resolved to "AAAAB3NzaC1kc3MAAACBAPWNQYbMBNFunF//lLWayoL11okn4L+LghlnQ+PUHTdpWgPZw6jYyzTWedNo+LOSZveTnWDPNXnsbmZ7oW3HtOdZiaPDSxupEllyQLT6S5pKaFil9RlfDHn/65OlehKsRlpGFt86bfaxmMRYgVrnZ1qP/tVUGViThIdt5sY+9UafAAAAFQCsjQh+MmzuVTpOyfXEPRN/5iTjQQAAAIAhCF+q4hwxYH/KLzKiSnh31hspksRbCBaM0Wa8zWh2UaLXzKWpA6c5Tt1r1nq1+lBlo7YKcCHE1iSq0awlXNVUWzFAdRSxz1VDhtm4hX4TLlJQl7rZAnzWvWp11PfO0pQLGo/849vP2//pZ69DQqfBSJPwKR6j/fJW1uqEkE0+FAAAAIEA4mwZ9gKOPgeI0nijovYWz8h0zJ3tgMi6bXh6DxMdtkPilTGiLOjVigFpvJgH2n/n66oOid6qnxgn49XH4gzrPHgUCS3jpxagr4LIUavIG3J+2A5AtQRn41z68xXObDFsuS0MNDIH7p6r/xZ+CtZvKhqsC2jqNSFycwg1IoasEmY=".
Debug: Facter: fact "sshfp_dsa" has resolved to "SSHFP 2 1 2ed833e6a5f887c70a268bf215a8b55b4feb3ea1 SSHFP 2 2 fd7882db34ee3c01f24e6ec949b9486135cd65d409aa4e5ec0d8cdb831925db6".
Debug: Facter: fact "sshrsakey" has resolved to "AAAAB3NzaC1yc2EAAAADAQABAAABAQDA0gTRC6ZrgWNoJfGvEwVlj2mF3GVotr4sTb8y0D2vF4CwBRygNwnRH/UjviaOmfwIm0qnJhHmy2apmTunxA9zq29GxOTAKyl+qCldr9z5uxo0Qca58xwk3Fc1W23WeIAzDBH3nmc/Fg18AKQ6jlDmn0JpccV4JT17tLm9RccnYwdfwpvBxAOtdpkoKD0xvd+4ZJYMOAPOWVmEBSDcyL2qMX7+tBzFcg800msKff7YnaxX3DnSqSu+3B5MyaAUec2jkZ9C9vAxhXYXPenYMxL43McJYlx3/y8XWNPpKXCKt2UbMtEBWIw71K+AoVW87BitIG1lu5yGYVLWRNUy/Yl3".
Debug: Facter: fact "sshfp_rsa" has resolved to "SSHFP 1 1 4b8337576be3f895e8f5bfb7870e38d9e550b073 SSHFP 1 2 d722d47b6a46589613f7f6182bf9d0665969639b1a77f1111ed2382e486bd491".
Debug: Facter: fact "sshecdsakey" has resolved to "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGxd/9jbbVVDbWW74OzDwWDPoWzQ4c3Pva2iHx3xRLEjCf9OmOtGTk5EXPfrO6APUjoxHPOoprLW5U2SdLWGkWk=".
Debug: Facter: fact "sshfp_ecdsa" has resolved to "SSHFP 3 1 00c727eac2471390ac5ef475c1e2082c3e1cb5b8 SSHFP 3 2 ed33a75094c34a3ae6bb0eca5d76838a117b3cfdf2a88087ff49ae516aabbb14".
Debug: Facter: fact "sshed25519key" has resolved to "AAAAC3NzaC1lZDI1NTE5AAAAIDX+xBxjKYVZ3cdZs6r3V98OhKPkKYqWvrkGhm9/oKmO". Debug: Facter: fact "sshfp_ed25519" has resolved to "SSHFP 4 1 1a4e1cbc42e680dcd95bdd5620e025b82d2dd537 SSHFP 4 2 99b871605301083a3196eba410b1886a7623301fa4545b7874b095fe3f9d18fa".
Debug: Facter: fact "ssh" has resolved to { dsa => {
fingerprints => {
sha1 => "SSHFP 2 1 2ed833e6a5f887c70a268bf215a8b55b4feb3ea1",
sha256 => "SSHFP 2 2 fd7882db34ee3c01f24e6ec949b9486135cd65d409aa4e5ec0d8cdb831925db6"
},
key => "AAAAB3NzaC1kc3MAAACBAPWNQYbMBNFunF//lLWayoL11okn4L+LghlnQ+PUHTdpWgPZw6jYyzTWedNo+LOSZveTnWDPNXnsbmZ7oW3HtOdZiaPDSxupEllyQLT6S5pKaFil9RlfDHn/65OlehKsRlpGFt86bfaxmMRYgVrnZ1qP/tVUGViThIdt5sY+9UafAAAAFQCsjQh+MmzuVTpOyfXEPRN/5iTjQQAAAIAhCF+q4hwxYH/KLzKiSnh31hspksRbCBaM0Wa8zWh2UaLXzKWpA6c5Tt1r1nq1+lBlo7YKcCHE1iSq0awlXNVUWzFAdRSxz1VDhtm4hX4TLlJQl7rZAnzWvWp11PfO0pQLGo/849vP2//pZ69DQqfBSJPwKR6j/fJW1uqEkE0+FAAAAIEA4mwZ9gKOPgeI0nijovYWz8h0zJ3tgMi6bXh6DxMdtkPilTGiLOjVigFpvJgH2n/n66oOid6qnxgn49XH4gzrPHgUCS3jpxagr4LIUavIG3J+2A5AtQRn41z68xXObDFsuS0MNDIH7p6r/xZ+CtZvKhqsC2jqNSFycwg1IoasEmY=",
type => "ssh-dss"
},
ecdsa => {
fingerprints => {
sha1 => "SSHFP 3 1 00c727eac2471390ac5ef475c1e2082c3e1cb5b8",
sha256 => "SSHFP 3 2 ed33a75094c34a3ae6bb0eca5d76838a117b3cfdf2a88087ff49ae516aabbb14"
},
key => "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGxd/9jbbVVDbWW74OzDwWDPoWzQ4c3Pva2iHx3xRLEjCf9OmOtGTk5EXPfrO6APUjoxHPOoprLW5U2SdLWGkWk=",
type => "ecdsa-sha2-nistp256"
},
ed25519 => {
fingerprints => {
sha1 => "SSHFP 4 1 1a4e1cbc42e680dcd95bdd5620e025b82d2dd537",
sha256 => "SSHFP 4 2 99b871605301083a3196eba410b1886a7623301fa4545b7874b095fe3f9d18fa"
},
key => "AAAAC3NzaC1lZDI1NTE5AAAAIDX+xBxjKYVZ3cdZs6r3V98OhKPkKYqWvrkGhm9/oKmO",
type => "ssh-ed25519"
},
rsa => {
fingerprints => {
sha1 => "SSHFP 1 1 4b8337576be3f895e8f5bfb7870e38d9e550b073",
sha256 => "SSHFP 1 2 d722d47b6a46589613f7f6182bf9d0665969639b1a77f1111ed2382e486bd491"
},
key => "AAAAB3NzaC1yc2EAAAADAQABAAABAQDA0gTRC6ZrgWNoJfGvEwVlj2mF3GVotr4sTb8y0D2vF4CwBRygNwnRH/UjviaOmfwIm0qnJhHmy2apmTunxA9zq29GxOTAKyl+qCldr9z5uxo0Qca58xwk3Fc1W23WeIAzDBH3nmc/Fg18AKQ6jlDmn0JpccV4JT17tLm9RccnYwdfwpvBxAOtdpkoKD0xvd+4ZJYMOAPOWVmEBSDcyL2qMX7+tBzFcg800msKff7YnaxX3DnSqSu+3B5MyaAUec2jkZ9C9vAxhXYXPenYMxL43McJYlx3/y8XWNPpKXCKt2UbMtEBWIw71K+AoVW87BitIG1lu5yGYVLWRNUy/Yl3",
type => "ssh-rsa"
}
}.
Debug: Facter: resolving id facts. Debug: Facter: fact "id" has resolved to "root". Debug: Facter: fact "gid" has resolved to "wheel". Debug: Facter: fact "identity" has resolved to { gid => 0,
group => "wheel",
privileged => true,
uid => 0,
user => "root"
}.
Debug: Facter: resolving timezone facts. Debug: Facter: fact "timezone" has resolved to "UTC". Debug: Facter: resolving load_average facts. Debug: Facter: fact "load_averages" has resolved to { 15m => 0.418457,
1m => 0.822266,
5m => 0.696777
}.
Debug: Facter: resolving processor facts. Debug: Facter: executing command: /usr/bin/uname -p Debug: Facter: amd64 Debug: Facter: process exited with status code 0. Debug: Facter: fact "hardwareisa" has resolved to "amd64". Debug: Facter: fact "processorcount" has resolved to 1. Debug: Facter: fact "processor0" has resolved to "Intel(R) Core(TM) i5-8600 CPU @ 3.10GHz". Debug: Facter: fact "processors" has resolved to { count => 1,
isa => "amd64",
models => [
"Intel(R) Core(TM) i5-8600 CPU @ 3.10GHz"
],
speed => "3.10 GHz"
}.
Debug: Facter: resolving ZFS facts. Debug: Facter: executing command: /sbin/zfs upgrade Debug: Facter: This system is currently running ZFS filesystem version 5. Debug: Facter: completed processing output: closing child pipes. Debug: Facter: process exited with status code 0. Debug: Facter: executing command: /sbin/zfs upgrade -v Debug: Facter: The following filesystem versions are supported: Debug: Facter: VER DESCRIPTION Debug: Facter: --- -------------------------------------------------------- Debug: Facter: 1 Initial ZFS filesystem version Debug: Facter: 2 Enhanced directory entries Debug: Facter: 3 Case insensitive and filesystem user identifier (FUID) Debug: Facter: 4 userquota, groupquota properties Debug: Facter: 5 System attributes Debug: Facter: For more information on a particular version, including supported releases, Debug: Facter: see the ZFS Administration Guide. Debug: Facter: process exited with status code 0. Debug: Facter: fact "zfs_version" has resolved to "5". Debug: Facter: fact "zfs_featurenumbers" has resolved to "1,2,3,4,5". Debug: Facter: resolving ZFS storage pool facts. Debug: Facter: executing command: /sbin/zpool upgrade -v Debug: Facter: This system supports ZFS pool feature flags. Debug: Facter: The following features are supported: Debug: Facter: FEAT DESCRIPTION Debug: Facter: ------------------------------------------------------------- Debug: Facter: async_destroy (read-only compatible) Debug: Facter: Destroy filesystems asynchronously. Debug: Facter: empty_bpobj (read-only compatible) Debug: Facter: Snapshots use less space. Debug: Facter: lz4_compress Debug: Facter: LZ4 compression algorithm support. Debug: Facter: multi_vdev_crash_dump Debug: Facter: Crash dumps to multiple vdev pools. Debug: Facter: spacemap_histogram (read-only compatible) Debug: Facter: Spacemaps maintain space histograms. Debug: Facter: enabled_txg (read-only compatible) Debug: Facter: Record txg at which a feature is enabled Debug: Facter: hole_birth Debug: Facter: Retain hole birth txg for more precise zfs send Debug: Facter: extensible_dataset Debug: Facter: Enhanced dataset functionality, used by other features. Debug: Facter: embedded_data Debug: Facter: Blocks which compress very well use even less space. Debug: Facter: bookmarks (read-only compatible) Debug: Facter: "zfs bookmark" command Debug: Facter: filesystem_limits (read-only compatible) Debug: Facter: Filesystem and snapshot limits. Debug: Facter: large_blocks Debug: Facter: Support for blocks larger than 128KB. Debug: Facter: large_dnode Debug: Facter: Variable on-disk size of dnodes. Debug: Facter: sha512 Debug: Facter: SHA-512/256 hash algorithm. Debug: Facter: skein Debug: Facter: Skein hash algorithm. Debug: Facter: device_removal Debug: Facter: Top-level vdevs can be removed, reducing logical pool size. Debug: Facter: obsolete_counts (read-only compatible) Debug: Facter: Reduce memory used by removed devices when their blocks are freed or remapped. Debug: Facter: zpool_checkpoint (read-only compatible) Debug: Facter: Pool state can be checkpointed, allowing rewind later. Debug: Facter: spacemap_v2 (read-only compatible) Debug: Facter: Space maps representing large segments are more efficient. Debug: Facter: The following legacy versions are also supported: Debug: Facter: VER DESCRIPTION Debug: Facter: --- -------------------------------------------------------- Debug: Facter: 1 Initial ZFS version Debug: Facter: 2 Ditto blocks (replicated metadata) Debug: Facter: 3 Hot spares and double parity RAID-Z Debug: Facter: 4 zpool history Debug: Facter: 5 Compression using the gzip algorithm Debug: Facter: 6 bootfs pool property Debug: Facter: 7 Separate intent log devices Debug: Facter: 8 Delegated administration Debug: Facter: 9 refquota and refreservation properties Debug: Facter: 10 Cache devices Debug: Facter: 11 Improved scrub performance Debug: Facter: 12 Snapshot properties Debug: Facter: 13 snapused property Debug: Facter: 14 passthrough-x aclinherit Debug: Facter: 15 user/group space accounting Debug: Facter: 16 stmf property support Debug: Facter: 17 Triple-parity RAID-Z Debug: Facter: 18 Snapshot user holds Debug: Facter: 19 Log device removal Debug: Facter: 20 Compression using zle (zero-length encoding) Debug: Facter: 21 Deduplication Debug: Facter: 22 Received properties Debug: Facter: 23 Slim ZIL Debug: Facter: 24 System attributes Debug: Facter: 25 Improved scrub stats Debug: Facter: 26 Improved snapshot deletion performance Debug: Facter: 27 Improved snapshot creation performance Debug: Facter: 28 Multiple vdev replacements Debug: Facter: For more information on a particular version, including supported releases, Debug: Facter: see the ZFS Administration Guide. Debug: Facter: process exited with status code 0. Debug: Facter: fact "zpool_version" has resolved to "5000". Debug: Facter: fact "zpool_featureflags" has resolved to "async_destroy,empty_bpobj,lz4_compress,multi_vdev_crash_dump,spacemap_histogram,enabled_txg,hole_birth,extensible_dataset,embedded_data,bookmarks,filesystem_limits,large_blocks,large_dnode,sha512,skein,device_removal,obsolete_counts,zpool_checkpoint,spacemap_v2".
Debug: Facter: fact "zpool_featurenumbers" has resolved to "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28". Debug: Facter: resolving memory facts. Debug: Facter: fact "memoryfree" has resolved to "1.53 GiB". Debug: Facter: fact "memoryfree_mb" has resolved to 1567.76. Debug: Facter: fact "memorysize" has resolved to "1.96 GiB". Debug: Facter: fact "memorysize_mb" has resolved to 2008.98. Debug: Facter: fact "memory" has resolved to { system => {
available => "1.53 GiB",
available_bytes => 1643917312,
capacity => "21.96%",
total => "1.96 GiB",
total_bytes => 2106572800,
used => "441.22 MiB",
used_bytes => 462655488
}
}.
Debug: Facter: resolving disk facts. Debug: Facter: Skipping config descr because it has a null value Debug: Facter: Skipping config ident because it has a null value Debug: Facter: Skipping config ident because it has a null value Debug: Facter: fact "blockdevice_vtbd0_size" has resolved to 21474967552. Debug: Facter: fact "blockdevice_cd0_model" has resolved to "BHYVE BHYVE DVD-ROM". Debug: Facter: fact "blockdevice_cd0_size" has resolved to 2850816. Debug: Facter: fact "blockdevice_cd1_model" has resolved to "BHYVE BHYVE DVD-ROM". Debug: Facter: fact "blockdevice_cd1_size" has resolved to 358400. Debug: Facter: fact "blockdevices" has resolved to "vtbd0,cd0,cd1". Debug: Facter: fact "disks" has resolved to { cd0 => {
model => "BHYVE BHYVE DVD-ROM",
size => "2.72 MiB",
size_bytes => 2850816
},
cd1 => {
model => "BHYVE BHYVE DVD-ROM",
size => "350.00 KiB",
size_bytes => 358400
},
vtbd0 => {
serial_number => "BHYVE-75AC-A9D6-AE16",
size => "20.00 GiB",
size_bytes => 21474967552
}
}.
Debug: Reset text domain to :production Debug: importing '/usr/local/etc/puppet/modules/bsd/manifests/network/interface/trunk.pp' in environment production Debug: Automatically imported bsd::network::interface::trunk from bsd/network/interface/trunk into production Warning: This method is deprecated, please use the stdlib validate_legacy function, with Pattern[]. There is further documentation for validate_legacy function in the README. at ["/usr/local/etc/puppet/modules/bsd/manifests/network/interface/trunk.pp", 17]: (location: /usr/local/etc/puppet/modules/stdlib/lib/puppet/functions/deprecation.rb:28:in `deprecation') Debug: importing '/usr/local/etc/puppet/modules/bsd/manifests/network/interface.pp' in environment production Debug: Automatically imported bsd::network::interface from bsd/network/interface into production Debug: Config is: {:name=>"lagg10", :addresses=>["10.0.0.1/24"], :options=>["laggproto lacp", "laggport vlan10", "laggport vlan11"]} Debug: Data is: {:lagg10=>{:addrs=>["inet 10.0.0.1/24 laggproto lacp laggport vlan10 laggport vlan11"]}} Debug: Returning resources: {"ifconfig_lagg10"=>{"value"=>"inet 10.0.0.1/24 laggproto lacp laggport vlan10 laggport vlan11"}} Debug: importing '/usr/local/etc/puppet/modules/bsd/manifests/network/interface/cloned.pp' in environment production Debug: Automatically imported bsd::network::interface::cloned from bsd/network/interface/cloned into production Notice: Compiled catalog for freebsd1.my.domain in environment production in 0.08 seconds Debug: Creating default schedules Info: Applying configuration version '1565830073' Debug: /Stage[main]/Main/Bsd::Network::Interface::Trunk[lagg10]/Bsd::Network::Interface[lagg10]/Shellvar[ifconfig_lagg10]/before: before to Bsd_interface[lagg10] Debug: /Stage[main]/Main/Bsd::Network::Interface::Trunk[lagg10]/Bsd::Network::Interface[lagg10]/Shellvar[ifconfig_lagg10]/notify: notify to Bsd_interface[lagg10] Notice: /Stage[main]/Main/Bsd::Network::Interface::Trunk[lagg10]/Bsd::Network::Interface[lagg10]/Shellvar[ifconfig_lagg10]/ensure: created Info: /Stage[main]/Main/Bsd::Network::Interface::Trunk[lagg10]/Bsd::Network::Interface[lagg10]/Shellvar[ifconfig_lagg10]: Scheduling refresh of Bsd_interface[lagg10] Debug: /Stage[main]/Main/Bsd::Network::Interface::Trunk[lagg10]/Bsd::Network::Interface[lagg10]/Shellvar[ifconfig_lagg10]: The container Bsd::Network::Interface[lagg10] will propagate my refresh event
Debug: Prefetching freebsd resources for bsd_interface Debug: Executing: '/sbin/ifconfig -C' Debug: Executing: '/sbin/ifconfig' Debug: Executing: '/usr/sbin/service netif restart lagg10' Notice: /Stage[main]/Main/Bsd::Network::Interface::Trunk[lagg10]/Bsd::Network::Interface[lagg10]/Bsd_interface[lagg10]: Triggered 'refresh' from 1 event Debug: /Stage[main]/Main/Bsd::Network::Interface::Trunk[lagg10]/Bsd::Network::Interface[lagg10]/Bsd_interface[lagg10]: The container Bsd::Network::Interface[lagg10] will propagate my refresh event
Debug: Bsd::Network::Interface[lagg10]: The container Bsd::Network::Interface::Trunk[lagg10] will propagate my refresh event Debug: Bsd::Network::Interface::Trunk[lagg10]: The container Class[Main] will propagate my refresh event Debug: Class[Main]: The container Stage[main] will propagate my refresh event Debug: Finishing transaction 17220423980 Debug: Storing state Info: Creating state file /var/puppet/state/state.yaml Debug: Pruned old state cache entries in 0.00 seconds Debug: Stored state in 0.01 seconds Notice: Applied catalog in 0.28 seconds Debug: Applying settings catalog for sections reporting, metrics Debug: Finishing transaction 17218533260 Debug: Received report to process from freebsd1.my.domain Debug: Processing report from freebsd1.my.domain with processor Puppet::Reports::Store
===
grep -R clone /etc/*
/etc/defaults/rc.conf:cloned_interfaces="" # List of cloned network interfaces to create. /etc/defaults/rc.conf:#cloned_interfaces="gif0 gif1 gif2 gif3" # Pre-cloning GENERIC config. /etc/mtree/BSD.tests.dist: zfs_clone /etc/network.subr:# clone_up /etc/network.subr:# Create cloneable interfaces. /etc/network.subr:clone_up() /etc/network.subr: for ifn in ${cloned_interfaces}; do /etc/network.subr: warn "\$gif_interfaces is obsolete. Use \$cloned_interfaces instead." /etc/network.subr: echo "Created clone interfaces: ${_list# }." /etc/network.subr:# clone_down /etc/network.subr:# Destroy cloned interfaces. Destroyed interfaces are echoed to /etc/network.subr:clone_down() /etc/network.subr: : ${cloned_interfaces_sticky:=NO} /etc/network.subr: if checkyesno cloned_interfaces_sticky; then /etc/network.subr: for ifn in ${cloned_interfaces} ${gif_interfaces}; do /etc/network.subr: echo "Destroyed clone interfaces: ${_list# }." /etc/network.subr: debug "Destroyed clones: ${_list# }" /etc/network.subr:# Note that the list will include cloned interfaces if applicable. /etc/network.subr: for _if in ${network_interfaces} ${cloned_interfaces}; do /etc/rc.d/netif:cloneup_cmd="clone_up" /etc/rc.d/netif:clonedown_cmd="clone_down" /etc/rc.d/netif:extra_commands="cloneup clonedown clear vnetup vnetdown" /etc/rc.d/netif: # Create cloned interfaces /etc/rc.d/netif: clone_up $cmdifn /etc/rc.d/netif: _clone_down=1 /etc/rc.d/netif: _clone_down= /etc/rc.d/netif: # Destroy cloned interfaces /etc/rc.d/netif: if [ -n "$_clone_down" ]; then /etc/rc.d/netif: clone_down $cmdifn
Thank you. Please also grep lagg /var/puppet/state/resources.txt
.
Oh I think maybe I see the issue.
If you try a single digit lagg, like lagg9
for example, does that work? It looks like a regex issue.
I think maybe https://github.com/xaque208/puppet-bsd/pull/130 will resolve your issue if it the two digit lagg problem that it appears to be. Would you mind testing and letting me know how it goes please?
@xaque208 Cool, you are right! it was a regex problem.
( yes, I originally had two digit in nic name )
now:
bsd::network::interface::trunk { 'lagg10':
interface => [ 'vlan1', 'vlan10' ],
address => [ '10.0.0.1/24' ],
}
bsd::network::interface::trunk { 'lagg2':
interface => [ 'vlan2', 'vlan3' ],
address => [ '10.0.0.2/24' ],
}
bsd::network::interface::trunk { 'lagg56':
interface => [ 'vlan5', 'vlan6' ],
address => [ '10.0.0.3/24' ],
}
result in /etc/rc.conf:
cloned_interfaces="lagg10 lagg2 lagg56" ifconfig_lagg10="inet 10.0.0.1/24 laggproto lacp laggport vlan1 laggport vlan10" ifconfig_lagg2="inet 10.0.0.2/24 laggproto lacp laggport vlan2 laggport vlan3" ifconfig_lagg56="inet 10.0.0.3/24 laggproto lacp laggport vlan5 laggport vlan6"
Thanks so much for the support!
Great! Thank you for the patience. I've merged to master, but been lazy about versions. I'll cut a version for this.
the following configuration:
creates /etc/rc.conf entry:
ifconfig_lagg10="inet 10.0.0.1/24 laggproto lacp laggport vtnet1 laggport vtnet2"
but doesn't set
cloned_interface=".. lagg10 .."
However, if I try to manage cloned_interface via puppet-bsd module:
I get the following result:
Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Bsd::Network::Interface::Cloned[lagg10] is already declared at (file: /etc/puppetlabs/code/environments/production/modules/mymodule/manifests/init.pp, line: 8); cannot redeclare (file: /etc/puppetlabs/code/environments/production/modules/bsd/manifests/network/interface.pp, line: 123) (file: /etc/puppetlabs/code/environments/production/modules/bsd/manifests/network/interface.pp, line: 123, column: 7) (file: /etc/puppetlabs/code/environments/production/modules/bsd/manifests/network/interface/trunk.pp, line: 41) on node XXX
I suppose that bsd::network::interface::trunk should manage cloned_interfase as well