puppet parser validate
puppet agent --waitforcert 15 --test
puppet cert list puppet cert sign hostname
| #/bin/bash | |
| exclude="log\|other" | |
| for directory in `find * -maxdepth 0 -type d` | |
| do | |
| if [[ "`echo $directory | grep \"$exclude\"`" == "" ]] | |
| then | |
| echo "### repo $directory =>" | |
| cd $directory | |
| git "$@" |
| #!/bin/bash | |
| # PARAM | |
| mysql_master=<%= @DBMY_MASTER_HOST %> | |
| user_mysql=root | |
| password_user_mysql=<%= @USER_ROOT_DBMY_SLAVE_PASSWORD %> | |
| replication_user=<%= @REP_USER %> | |
| replication_password=<%= @REP_PASSWORD %> | |
| read -p "Etes vous sur de vouloir installer la replication ? [Y/N]" -n 1 -r |
curl -XPUT "http://localhost:9200/*/_settings" -d '{ "index" : {"number_of_replicas": 0 } }'
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
curl -XGET http://localhost:9200/_cat/shards
| # config | |
| git config --global user.name "rodesousa" && git config --global user.email [email protected] | |
| git config --global core.editor "vim" | |
| # Pour convertir les retours à la ligne Windows -> Linux | |
| git config --global core.autocrlf true | |
| # alias | |
| git config --global alias.cmm "commit -s -m" | |
| git config --global alias.cma "commit --amend" |
/opt/logstash/bin/logstash -f *.conf
###Grok constructor http://grokconstructor.appspot.com/do/match#result
###input https://www.elastic.co/guide/en/logstash/current/input-plugins.html
###output
| # Customize BASH PS1 prompt to show current GIT repository and branch. | |
| # by Mike Stewart - http://MediaDoneRight.com | |
| # SETUP CONSTANTS | |
| # Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
| # I don't remember where I found this. o_O | |
| # Reset | |
| Color_Off="\[\033[0m\]" # Text Reset |