{ "saltclient713.example.com": { "pkg_|-postfix_|-postfix_|-installed": { "comment": "Package postfix is already installed.", "name": "postfix", "start_time": "00:18:06.518702", "result": true, "duration": 1.575, "__run_num__": 13, "changes": { }, "retcode": 2 }, "file_|-mysql_config_|-/etc/my.cnf_|-managed": { "comment": "File /etc/my.cnf updated", "name": "/etc/my.cnf", "start_time": "00:18:00.901791", "result": true, "duration": 978.938, "__run_num__": 6, "changes": { "diff": "--- \n+++ \n@@ -1,10 +1,39 @@\n-[mysqld]\n-datadir=/var/lib/mysql\n-socket=/var/lib/mysql/mysql.sock\n-user=mysql\n-# Disabling symbolic-links is recommended to prevent assorted security risks\n-symbolic-links=0\n+# DO NOT CHANGE THIS FILE!\n+# This config is generated by SALTSTACK\n+# and all change will be overrided on next salt call\n+\n+\n+[myisampack]\n+\n+[mysqlimport]\n+\n+[mysqlcheck]\n \n [mysqld_safe]\n-log-error=/var/log/mysqld.log\n-pid-file=/var/run/mysqld/mysqld.pid\n+log-error = /var/log/mysqld.log\n+pid-file = /var/run/mysqld/mysqld.pid\n+\n+[mysqladmin]\n+\n+[mysqlshow]\n+\n+[myisamchk]\n+\n+[client]\n+\n+[mysqlhotcopy]\n+\n+[mysqldump]\n+\n+[mysql]\n+\n+[mysqld]\n+bind-address = 127.0.0.1\n+datadir = /var/lib/mysql\n+port = 3306\n+socket = /var/lib/mysql/mysql.sock\n+symbolic-links = 0\n+user = mysql\n+\n+[isamchk]\n+\n" }, "retcode": 2 }, "mysql_database_|-mysql remove test database_|-test_|-absent": { "comment": "Database test has been removed", "name": "test", "start_time": "00:18:06.511324", "result": true, "duration": 7.266, "__run_num__": 12, "changes": { "test": "Absent" }, "retcode": 2 }, "service_|-postfix_|-postfix_|-running": { "comment": "Service postfix is already enabled, and is in the desired state", "name": "postfix", "start_time": "00:18:06.520605", "result": true, "duration": 53.025, "__run_num__": 14, "changes": { } }, "mysql_user_|-mysql_delete_anonymous_user_saltclient713.example.com_|-_|-absent": { "comment": "An exception occurred in this state: Traceback (most recent call last):\n File \"/usr/lib/python2.6/site-packages/salt/state.py\", line 1533, in call\n **cdata['kwargs'])\n File \"/usr/lib/python2.6/site-packages/salt/states/mysql_user.py\", line 239, in absent\n if __salt__['mysql.user_exists'](name, host, **connection_args):\n File \"/usr/lib/python2.6/site-packages/salt/modules/mysql.py\", line 1023, in user_exists\n dbc = _connect(**connection_args)\n File \"/usr/lib/python2.6/site-packages/salt/modules/mysql.py\", line 287, in _connect\n dbc = MySQLdb.connect(**connargs)\n File \"/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py\", line 81, in Connect\n return Connection(*args, **kwargs)\n File \"/usr/lib64/python2.6/site-packages/MySQLdb/connections.py\", line 187, in __init__\n super(Connection, self).__init__(*args, **kwargs2)\nTypeError: connect() argument 3 must be string, not int\n", "name": "", "start_time": "00:18:06.510447", "result": false, "duration": 0.752, "__run_num__": 11, "changes": { } }, "mysql_user_|-mysql_delete_anonymous_user_localhost_|-_|-absent": { "comment": "An exception occurred in this state: Traceback (most recent call last):\n File \"/usr/lib/python2.6/site-packages/salt/state.py\", line 1533, in call\n **cdata['kwargs'])\n File \"/usr/lib/python2.6/site-packages/salt/states/mysql_user.py\", line 239, in absent\n if __salt__['mysql.user_exists'](name, host, **connection_args):\n File \"/usr/lib/python2.6/site-packages/salt/modules/mysql.py\", line 1023, in user_exists\n dbc = _connect(**connection_args)\n File \"/usr/lib/python2.6/site-packages/salt/modules/mysql.py\", line 287, in _connect\n dbc = MySQLdb.connect(**connargs)\n File \"/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py\", line 81, in Connect\n return Connection(*args, **kwargs)\n File \"/usr/lib64/python2.6/site-packages/MySQLdb/connections.py\", line 187, in __init__\n super(Connection, self).__init__(*args, **kwargs2)\nTypeError: connect() argument 3 must be string, not int\n", "_stamp": "2014-11-16T01:18:06.783560", "return": "Error: mysql_user.absent", "name": "", "success": false, "start_time": "00:18:06.488962", "jid": "20141116011706024672", "duration": 19.798, "result": false, "fun": "state.highstate", "__run_num__": 9, "changes": { }, "id": "saltclient713.example.com", "retcode": 2 }, "service_|-mysqld_|-mysqld_|-running": { "comment": "Service mysqld has been enabled, and is running", "name": "mysqld", "start_time": "00:18:01.881541", "result": true, "duration": 4566.262, "__run_num__": 7, "changes": { "mysqld": true } }, "mysql_user_|-mysql_delete_anonymous_user_localhost.localdomain_|-_|-absent": { "comment": "An exception occurred in this state: Traceback (most recent call last):\n File \"/usr/lib/python2.6/site-packages/salt/state.py\", line 1533, in call\n **cdata['kwargs'])\n File \"/usr/lib/python2.6/site-packages/salt/states/mysql_user.py\", line 239, in absent\n if __salt__['mysql.user_exists'](name, host, **connection_args):\n File \"/usr/lib/python2.6/site-packages/salt/modules/mysql.py\", line 1023, in user_exists\n dbc = _connect(**connection_args)\n File \"/usr/lib/python2.6/site-packages/salt/modules/mysql.py\", line 287, in _connect\n dbc = MySQLdb.connect(**connargs)\n File \"/usr/lib64/python2.6/site-packages/MySQLdb/__init__.py\", line 81, in Connect\n return Connection(*args, **kwargs)\n File \"/usr/lib64/python2.6/site-packages/MySQLdb/connections.py\", line 187, in __init__\n super(Connection, self).__init__(*args, **kwargs2)\nTypeError: connect() argument 3 must be string, not int\n", "name": "", "start_time": "00:18:06.509230", "result": false, "duration": 0.8, "__run_num__": 10, "changes": { } }, "pkg_|-mysqld_|-mysql-server_|-installed": { "comment": "The following packages were installed/updated: mysql-server.", "name": "mysql-server", "start_time": "00:17:41.058929", "result": true, "duration": 19842.654, "__run_num__": 5, "changes": { "perl-DBI": { "new": "1.609-4.el6", "old": "" }, "perl-DBD-MySQL": { "new": "4.013-3.el6", "old": "" }, "mysql-server": { "new": "5.1.73-3.el6_5", "old": "" }, "mysql": { "new": "5.1.73-3.el6_5", "old": "" } } }, "cmd_|-mysql_root_password_|-mysqladmin --user root password '434510094'_|-run": { "comment": "Command \"mysqladmin --user root password '434510094'\" run", "name": "mysqladmin --user root password '434510094'", "start_time": "00:18:06.448367", "result": true, "duration": 39.196, "__run_num__": 8, "changes": { "pid": 2709, "retcode": 0, "stderr": "", "stdout": "" } }, "pkg_|-mysql_python_|-MySQL-python_|-installed": { "comment": "The following packages were installed/updated: MySQL-python.", "name": "MySQL-python", "start_time": "00:17:14.059753", "result": true, "duration": 26997.765, "__run_num__": 4, "changes": { "MySQL-python": { "new": "1.2.3-0.3.c1.1.el6", "old": "" } }, "retcode": 2 }, "file_|-enable_epel_|-/etc/yum.repos.d/epel.repo_|-sed": { "comment": "sed ran without error", "name": "/etc/yum.repos.d/epel.repo", "start_time": "00:17:14.024416", "result": true, "duration": 35.098, "__run_num__": 3, "changes": { "diff": "--- \n+++ \n@@ -12,7 +12,7 @@\n #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug\n mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch\n failovermethod=priority\n-enabled=0\n+enabled=1\n gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6\n gpgcheck=1\n \n@@ -21,6 +21,6 @@\n #baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS\n mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch\n failovermethod=priority\n-enabled=0\n+enabled=1\n gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6\n gpgcheck=1\n" } }, "pkg_|-epel_release_|-epel_release_|-installed": { "comment": "All specified packages are already installed.", "name": "epel_release", "start_time": "00:17:13.178528", "result": true, "duration": 845.684, "__run_num__": 2, "changes": { } }, "file_|-/etc/motd_|-/etc/motd_|-managed": { "comment": "File /etc/motd updated", "name": "/etc/motd", "start_time": "00:17:11.971247", "result": true, "duration": 163.144, "__run_num__": 0, "changes": { "diff": "--- \n+++ \n@@ -1,0 +1,7 @@\n+_| _| _| _| _|\n+_|_|_| _|_|_|_| _|_|_| _|_|_|\n+_| _| _| _| _| _| _| _| _|\n+_| _| _| _| _| _| _| _| _|\n+_|_|_| _| _|_| _|_|_| _| _| _|\n+\n+saltclient713.example.com\n" } }, "file_|-install_pubkey_|-/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL_|-managed": { "comment": "File /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL updated", "name": "/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL", "start_time": "00:17:12.134782", "result": true, "duration": 1042.983, "__run_num__": 1, "changes": { "diff": "New file", "mode": "0644" } } } }