This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# more /opt/puppetlabs/server/data/puppetserver/jruby-gems/extensions/universal-java-1.8/2.3.0/ruby-augeas-0.5.0/mkmf.log | |
"pkg-config --exists augeas" | |
| pkg-config --libs augeas | |
=> "-laugeas \n" | |
" -o conftest -I/include/universal-java1.8 -Iuri:classloader:/META-INF/jruby.home/lib/ruby/include/ruby/backward -Iuri:classloader:/META-INF/jruby.home/lib/ruby/include -I. -fPIC | |
-fno-omit-frame-pointer -fno-strict-aliasing -fexceptions conftest.c -L. -Luri:classloader:/META-INF/jruby.home/lib -m64 " | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# puppetserver gem install ruby-augeas | |
Warning: the JRUBY_JAR setting is no longer needed and will be ignored. | |
Building native extensions. This could take a while... | |
ERROR: Error installing ruby-augeas: | |
ERROR: Failed to build gem native extension. | |
current directory: /opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/ruby-augeas-0.5.0/ext/augeas | |
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/bin/java -cp :/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar:/opt/puppetlabs/server/data/puppetserver/jars/* org.jruby.Main -r ./siteconf20180919-4733-1tnfkxj.rb extconf.rb | |
RuntimeError: The compiler failed to generate an executable file. | |
You have to install development tools first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node 1: | |
vrrp_script check_openvpn { | |
script "/usr/bin/killall -0 openvpn" | |
interval 5 | |
weight 2 | |
} | |
vrrp_instance VI_52 { | |
interface eth0 | |
state EQUAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'netaddr' ##Version Puppet 3.8.7 | |
module Puppet::Parser::Functions | |
newfunction(:ip_2_network, :type => :rvalue) do |args| | |
## receive the 192.168.10.100/24 ip adderss | |
definition = args[1] | |
cidr = NetAddr::CIDR.create(args[0]) | |
if definition == 'ip' | |
result = cidr.ip | |
elsif definition == 'network' |