Using a Chef recipe to append multiple lines to a config file

I'm trying to create a Chef recipe to append multiple lines (20-30) to a specific config file. I'm aware the recommended pattern is to change entire config files rather than just appending to a...

Hiding secrets in puppet agent logs?

Related to: https://stackoverflow.com/questions/11171472/handling-sensitive-information-with-puppet Just noticed that with both augeas and templates our passwords get dumped into /var/log/messages...

corosync immediately shuts down after start

I am running a pacemaker cluster with corosync on two nodes. I had to restart node2 and after reboot and doing service corosync start corosync is started but shuts down itself immediately. After...

how to update existing or create new XML node with Augeas

For the following XML: <properties> <entry key="foo">bar</entry> </properties> I can update exiting entry with attribute "foo" with the following augeas command: set...

letsencrypt-auto certonly does'nt work

no matter which command I use with ./letsencypt-auto the result is always the same as blew, am I missing something here. here is an output on ./letsencrypt-auto certonly. [[email protected]

Git: how to unstage file changes (new commits)

[email protected]:~/Projects/skyrocket$ git status On branch dev/SMMWEB-36 Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout --...

When using Oracle JDK 1.8.0_60 on two centos 7.1 systems one Jenkins slave fails to collect artifacts with NoClassDefFoundError

Riddle me this: How can two nearly identical jenkins slaves running with Oracle JDK 1.8 u60 Java have one fail to collect artifact with a classdef error while the other is fine? In both case the...

Puppet : how to resolve "file_line" multi match patterns

I'm trying to change configuration file using puppet. This is my test.txt file that i want to change : [default] #puppet=no abc=123 [nova] #puppet=no I want to change "#puppet=no" to...

Python 2.6 or 2.7 setuptools > OSError - "Bootstra...sys.argv" = "setuptools failed with error code 1" > (Certbot-auto)

When trying to run "certbot-auto" for the first time instead of "letsencrypt-auto" to renew certificates on a server, it seems to fail with a couple of messages: OSError: Command...

Cryptography install hangs on Amazon AMI when running `./certbot-auto --debug --verbose certonly --standalone -d foo.com`

I am trying to install Certbot and genereate some certificates for my Amazon AMI server, however when I run: sudo ./certbot-auto --debug --verbose certonly --standalone -d foo.com the setup...

Lets Encrypt 403 Error When Installing Certificate

I receive a urllib2.HTTPError: HTTP Error 403: Forbidden error when attempting to install a Lets Encrypt certificate using Certbot. I have been installing certificates using the steps listed in...

"groupadd: Command not found" in docker container even though I install it and I am root

I have the below Dockerfile which I want to build. It's basically just the normal jboss/wildfly base image, but built with amazonlinux instead of centOS. The build error's out with the line...

Running ./autogen.sh with bash -c fails

I port autoconf project from Linux to Windows and when I invoke autogen.sh with bash, it fails on dirname $0: C:\msys64\usr\bin\bash.exe -c "./autogen.sh" /usr/bin/dirname: missing operand Try...

Can't figure out how to properly add onlyif in augeas

I have the following xml: <subsystem xmlns="urn:jboss:domain:undertow:1.1"> <buffer-cache name="default"/> <server name="default-server"> <http-listener max-post-size="104857600"...

Custom type/provider not ensurable

I'm trying to create a new custom type/provider but not ensurable. I've already checked the exec and augeas types, but I couldn't figure out clearly how exactly the integration between type and...

Certbot autorenew failed during Github outage

Today I had a certbot autorenew failure. The cron script to renew the certificate failed, and my certificate expired. Below is the log, which includes at the end me ssh'ing into the box to...

Puppet file_line in specific order

Im trying to add three system hardening lines to /etc/profile: TMOUT=43200 readonly TMOUT export TMOUT Of course those lines need to be in this specific order and I also have to expect files...

Puppet Augeas Cannot set 'exclude' key value

I have a fresh installation of CentOS 6.9 on VirtualBox. I have installed puppet-agent 5.4 but receive an error when I apply the following manifest: augeas { "yum_exclude_test": incl =>...

git review complains of requests.packages.urllib3 but the package is installed

when i try to run git-review i get the below error: [[email protected] ~]# git-review Traceback (most recent call last): File "/usr/bin/git-review", line 7, in <module> from git_review.cmd...

How to add export statements to bash_profile with Augeas and Puppet

I have Puppet + Augeas working to assign variable values in a bash_profile, however I have not found a way to export the variables from the file. augeas { "bash_profile-${user}-${name}": ...

puppet, augeas and properties lens: file not saved because no difference detected

I want to edit a java properties file using puppet and augeas. I'm using this code which seems to be correct but actually this do not modify the file. $disabledalgo = "SSLv3, RC4, MD5withRSA, DH...

Error in Puppet agent 3.8 installation on cent OS 7.5 without internet

I am installing puppet agent 3.8.7 on cent OS 7.5. The OS was installed on a new VM and it is not connected to internet. I have created a yum repo which points to pulp repository. Below are the...

python-certbot dependencies broken E: Sub-process /usr/bin/dpkg returned an error code (1)

This is my problem, if someone can help me... From a server which has been just upgraded from Debian 7 Wheezy to Debian 8 Jessie, some issues appear since the upgrade of python-django for a ...

Augeas to sort XML file

I need to edit some XML files, I'm OK with removing and setting, but I don't see if and how is it possible to sort XML file using only Augeas? Has anyone done it, I am trying to avoid other...

PyInstaller: StopIteration Error when I import geopandas

I am trying to execute PyInstaller on a my script. I installed all of the required packages and the .exe is succesfully created. But when I execute it on another machine, I get he Following...

How to install ruby-augeas gem? (macOS Mojave)

I spent most of the day yesterday searching for a clear answer for installing ruby-augeas. I can't find a good solution. How do I install it? The error while installing: gem install ruby-augeas ...

Use sed (or awk) to add entry in fstab when match found

I have a need to edit lines in /etc/fstab and add/change fsoptions to lines where a matching volume is found. I have tried using sed and putting found blocks into registers to place them back,...

How to build and install yugabyte db version 2.0.6.0 from github source?

a) downloaded yugabyte-db.tar.gz from github b) created directory /opt/yugabyte/yugabyte-2.0.6.0 c) extracted to /opt/yugabyte d) made /opt/yugabyte/yugabyte-master as present working directory e)...

Certbot Python Augeas dependency

Trying to spin up a simple LAMP service with AWS and Certbot SSL. Followed all the directions but my when I run the certbot-auto I'm given the following error: The apache plugin is not working;...

Sub-process dpkg returned an error code (1)

dpkg: error processing package python3-certbot-apache (--configure): dependency problems - leaving unconfigured Errors were encountered while...