This file contains hidden or 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
bundle agent mysql_user() { | |
vars: | |
any:: | |
"users_to_check" slist => { "francois", "benoit" }; | |
"user_is_not_here" string => execresult("/usr/local/bin/mysql_user_check $(users_to_check)","noshell"); | |
classes: | |
"mysql_check_OK" expression => strcmp("$(user_is_not_here)", "OK"); | |
"mysql_check_NOK" expression => strcmp("$(user_is_not_here)", "NOK"); |
This file contains hidden or 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
Host client1-web1 | |
hostname = ccblockww02xa09bc | |
user = root | |
Host client1-sql1 | |
hostname = ddtxocksql01xz02 | |
user = ahugo |
This file contains hidden or 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
MBA-FBA:bin francois$ ./virt-manager | |
RuntimeWarning: tp_compare didn't return -1 or -2 for exception | |
RuntimeWarning: tp_compare didn't return -1 or -2 for exception | |
Traceback (most recent call last): | |
File "/Users/francois/bin/mybuild/share/virt-manager/virt-manager.py", line 393, in <module> | |
_show_startup_error(str(run_e), "".join(traceback.format_exc())) | |
File "/Users/francois/bin/mybuild/share/virt-manager/virt-manager.py", line 63, in _show_startup_error | |
from virtManager.error import vmmErrorDialog | |
File "/Users/francois/bin/mybuild/share/virt-manager/virtManager/error.py", line 173, in <module> | |
class _errorDialog (gtk.MessageDialog): |
This file contains hidden or 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
4.0K /var/rudder/ldap/openldap-data/alock | |
44K /var/rudder/ldap/openldap-data/cn.bdb | |
8.0K /var/rudder/ldap/openldap-data/container.bdb | |
12K /var/rudder/ldap/openldap-data/__db.001 | |
35M /var/rudder/ldap/openldap-data/__db.002 | |
25M /var/rudder/ldap/openldap-data/__db.003 | |
216K /var/rudder/ldap/openldap-data/__db.004 | |
940K /var/rudder/ldap/openldap-data/__db.005 | |
20K /var/rudder/ldap/openldap-data/__db.006 | |
4.0K /var/rudder/ldap/openldap-data/DB_CONFIG |
This file contains hidden or 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
# Add your own tasks in files placed in lib/tasks ending in .rake, | |
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
require File.expand_path('../config/application', __FILE__) | |
Graylog2WebInterface::Application.load_tasks | |
def trap_load_error | |
yield | |
rescue LoadError |
This file contains hidden or 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
#! /bin/bash | |
apt-get -y --force-yes install ntpdate | |
ntpdate timesrv1.domain.example | |
ntpdate ntp.domain.example | |
apt-get -y --force-yes install rudder-agent | |
echo server.domain.example > /var/rudder/cfengine-community/policy_server.dat | |
/etc/init.d/rudder-agent start |
This file contains hidden or 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
#! /bin/bash | |
# | |
lvdisplay /dev/vg1/loli`date +%u` | |
if [ $? -eq 0 ] | |
then | |
dmsetup remove vg1-loli`date +%u` |
This file contains hidden or 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
17306 ? S 0:00 sh -c "/var/rudder/cfengine-community/bin/cf-agent" -f failsafe.cf && "/var/rudder/cfengine-community/bin/cf-agent" -Dfrom_cfexecd | |
17310 ? Rs 21171:48 \_ /var/rudder/cfengine-community/bin/cf-agent -Dfrom_cfexecd | |
25256 ? Ss 0:02 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 106:110 | |
28378 ? Ss 0:01 /var/rudder/cfengine-community/bin/cf-serverd | |
28404 ? Ssl 0:07 /var/rudder/cfengine-community/bin/cf-execd | |
2308 ? S 0:00 \_ sh -c "/var/rudder/cfengine-community/bin/cf-agent" -f failsafe.cf && "/var/rudder/cfengine-community/bin/cf-agent" -Dfrom_cfexecd | |
2313 ? Ss 0:06 | \_ /var/rudder/cfengine-community/bin/cf-agent -Dfrom_cfexecd | |
2408 ? S 0:00 \_ sh -c "/var/rudder/cfengine-community/bin/cf-agent" -f failsafe.cf && "/var/rudder/cfengine-community/bin/cf-agent" -Dfrom_cfexecd | |
2409 ? Ss 0:00 \_ /var/rudder/cfengine-community/bin/cf-agent -f failsafe.cf |
This file contains hidden or 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
--- | |
- hosts: zabbix-agent | |
vars: | |
limit: 20 | |
vars_files: | |
- ../global_vars.yml | |
- ../vars/main.yml |
This file contains hidden or 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
fbayart97:cmdb fbayart [master] $ tree | |
. | |
├── 00_installation | |
│ ├── files | |
│ │ └── belgium.list | |
│ ├── setup.yml | |
│ └── templates | |
│ └── mailname.j2 | |
├── 01_ldap | |
│ ├── client.yml |
OlderNewer