Thursday, May 9, 2019

Task --> you need to create redis dbs, either single or multiple based on hiera data using puppet

Hi all,

I know there is no post in past few weeks, sorry i was struck with my family issues and i got married recently . so come to our issue  as mentioned above,

so customer already have manifest to create single DB,  but customer needs to create multiple DB by using hiera hash,
we can create hiera hash , but i struck at getting data into manifest, and i  fix that by using help of below urls

https://ask.puppet.com/question/20314/puppet-apply-and-hiera-data/

https://stackoverflow.com/a/40617806/3909294

Thanks to puppet community and stackoverflow , i can able to solve this issue 

Thursday, April 27, 2017

Puppet agent removing and reinstalling in windows error message

While doing that above task , you may end up getting this bellow error


Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/facts.d]: Failed to generate
 additional resources using 'eval_generate': SSL_connect returned=1 errno=0 stat
e=error: certificate verify failed: [unable to get local issuer certificate for
/CN=puppetmaster]
Error: /File[C:/ProgramData/PuppetLabs/puppet/cache/facts.d]: Could not evaluate
: Could not retrieve file metadata for puppet:///pluginfacts: SSL_connect return
ed=1 errno=0 state=error: certificate verify failed: [unable to get local issuer
 certificate for /CN=puppetmaster]

for this error you have to remove ssl folder in this location(C:/ProgramData/PuppetLabs/puppet ) and run puppet agent again 

you are good to go

Thursday, March 30, 2017

need to know today

How to call an class with arguments from another class in ruby or puppet DSL ???

Friday, October 14, 2016

CHEF post 1

Hi all

I am started to learning CHEF,  you may thought i am going to cook some food. ha  ha ha, very funny guys. Those who doesn't know what is chef, It is an configuration management language. so you think, some of us using some other tools are scripts to manage config files. CHEF is an new concept , it's been there for many years, i am started learning now, i am going to do an walkthrough for my CHEF knowledge with all of you ..!!!

Thanks
Thirumoorthi

Thursday, June 2, 2016

What I learned Today " Password less login for your servers "

Hi all ,

Even though some of the servers are  compromised using passwords , So to avoid those kind of issues we have to setup Password less login to ensure high safety and security to our servers.

Steps : Create SSH keys to your user id in your server , use bellow commands to create SSH keys ,

cd ~/.ssh
ssh-keygen -t dsa -b 1024
 
Create an PEM key from an gerenated PRIVATEKEY
 
openssl dsa -in id_dsa -outform pem > test.pem 
 
Copy generated Public key to Authorized_keys file,
 
cat id_dsa.pub >> authorized_keys
 
That's it we are done with the key generation. We have to do is to copy that pem key to 
local machine and log in to  that server with this pem key.


ssh -i "test.pem" username@servername 

That's it we are good to gooooo.....!!!!!

 
 

Friday, February 12, 2016

Completed first python script on Excel automation

I am happy to share that I finished excel  automation for my official work.I actually used openpyxl for my xlsx automation. I feel great when I done it. Before that I thought automating an excellent work is bit difficult but  once you learn to do, it's mind blowing.

I'm trying to automate xlsx works for an little bit of an time. But due to some backlogs I didn't finish it on the expected time period. 


Wednesday, September 30, 2015

test post for my tweet

Test

What I learned today sep 30th 2015


I find out that search and replace for an file using SED editor

sed -i 's#055#007#' /etc/login.defs ; grep UMASK /etc/login.defs

above command replaces 055 value in login.defs to 007,
this may looks like simple, but it is more powerfull stuff

Task --> you need to create redis dbs, either single or multiple based on hiera data using puppet

Hi all, I know there is no post in past few weeks, sorry i was struck with my family issues and i got married recently . so come to our i...