Wednesday, December 17, 2014

The certificate retrieved from the master does not match the agent's private key.

While implementing puppet in our environment, I got into this issue with newly created machine. Running 'puppet agent -t' for the first time:

First you must make sure the certname in puppet.conf matches the hostname of the machine, but the commands mentioned above may still not work and result in the same error.

After a little digging on the puppet master machine, I found the following domain.com.pem file in the following path:
/var/lib/puppet/ssl/ca/signed
Just remove this agent's pem file, and redo the commands again. Fixed the issue for me.

Edit: Also ensure you are working under root in puppet master :P

Tuesday, February 18, 2014

LibreOffice 4 not opening files from smb

Just a note to myself,

It's a temporary fix, or as many call it, a workaround.

There is a bug in LO that you're not able to open files on smb share. The LO just start (may show a splash screen), and closes with no error.

The workaround is simple, as provided by Maxim Monastirsky (comment #15):

Open the .desktop file (such as /usr/share/applications/libreoffice4.1-writer.desktop for LO Writer) and comment the following line:
For Nautilus users:
X-GIO-NoFuse=true

For Dolphin users:
Open the same file, and comment the following line:
X-KDE-Protocols=file,http,smb,ftp,webdav

It's working now like a charm.

Wednesday, February 5, 2014

Can't send mail from kontact using davmail

I moved to Arch Linux recently with KDE, and tried setting my organization email account on Kontact using davmail.
It's not my first time, and I just used this steps as usual:
http://osdir.com/ml/kde-pim/2011-07/msg00146.html

Everything was setup except I couldn't send email and received the following error:
Error : davmail.exchange.ews.EWSException: ErrorSendAsDenied The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account
After lot of investigation, I found out that somehow "davmail is not sending the right "From" address in new versions".
That's Ok, except I have an old davmail server, that wasn't updated for some months, and it worked before I moved to Arch.

So I tried to check the Kmail side, and after a lot of time, came up with this note in the documentation:

The way of sending messages configured here will be used for your default identity and for all other identities that do not have their own way of sending messages. You can use different ways of sending messages for different identities by selecting the Outgoing Account check box in the Advanced tab of the Identities page.
Kmail Identity Edit
Kmail Identity settings
Let's check my identity then! And I've found the culprit.
Go to Configure Kmail ->  Identities -> Choose your Identity -> Modify.
I had no email address set in my Identity, right after setting it up, the emails sent successfully!

Not sure why it happened, maybe some change in the newer version of Kmail. But that fixed it for me, and hope does the same for you!

Ansible and Jinja2: Check if variable is defined and it's True

Jinja2 provides you with a built in test: http://jinja.pocoo.org/docs/2.10/templates/#defined So you can simply use: However, if you...