Commit Graph

3976 Commits

Author SHA1 Message Date
Thomas S Hatch
d31eb6f4df Add test interface to cron state 2012-04-11 00:15:14 -06:00
Thomas S Hatch
c02f6cec87 get rid of stupid FIXME 2012-04-10 23:42:29 -06:00
Thomas S Hatch
0dea12520d Add test interface to sysctl state 2012-04-10 23:41:04 -06:00
Thomas S Hatch
9ebdfcbdff iupdate the user state.
This commit partitions out the detection of what changes are required in
a user and adds the testinterface
2012-04-10 23:26:34 -06:00
Thomas S Hatch
19af3791cf Add test interface to virtualenv 2012-04-10 21:56:25 -06:00
Thomas S Hatch
1d669ed344 Add test interface to service state 2012-04-10 21:01:55 -06:00
Thomas S Hatch
335e0ba748 Add test interface to rvm state 2012-04-10 20:24:27 -06:00
Thomas S Hatch
547a68c2e0 fix quotes in rvm state 2012-04-10 20:15:53 -06:00
Thomas S Hatch
5bff6be523 Add test interface to postgress state 2012-04-10 18:47:11 -06:00
Thomas S Hatch
2fccc17537 Add test interface to pkg state 2012-04-10 18:45:02 -06:00
Thomas S Hatch
7a8a0fb76c Add test interface to pip state 2012-04-10 18:28:09 -06:00
Thomas S Hatch
598714df44 Add test interface to mysql_user 2012-04-10 18:21:58 -06:00
Thomas S Hatch
2f98a54bea Add test functionality to mysql_grants state 2012-04-10 18:11:08 -06:00
Thomas S Hatch
d4cfd743b2 Add test functionality to mysql_database state 2012-04-10 18:03:11 -06:00
Thomas S Hatch
d532e23d34 Add mount to test options 2012-04-10 17:56:06 -06:00
Thomas S Hatch
690e6de6e1 add test to host state 2012-04-10 17:32:42 -06:00
Thomas S Hatch
a70e4120b8 Set gem to return result of None if tests applied 2012-04-10 17:27:32 -06:00
Thomas S Hatch
66ab1602e1 change cmd test return to None 2012-04-10 17:24:17 -06:00
Thomas S Hatch
b1d644be17 add test to group state 2012-04-10 17:23:31 -06:00
Thomas S Hatch
adc06020b5 Add test to gem state 2012-04-10 17:09:33 -06:00
Thomas S Hatch
3a62b99ecb fix strings in gem state 2012-04-10 17:05:21 -06:00
Thomas S Hatch
3dee6bfedc Add test opts to cmd state 2012-04-10 17:02:29 -06:00
Thomas S Hatch
89221e377b Add initial (probably borken) travis file 2012-04-10 15:38:54 -06:00
Thomas S Hatch
d1cef5afd8 update more with statements 2012-04-10 15:13:10 -06:00
Thomas S Hatch
45755b7eac modify payload to cleanly close files 2012-04-10 15:12:56 -06:00
Thomas S Hatch
e640ac1057 Add more with statements around file managers 2012-04-10 13:33:47 -06:00
Thomas S Hatch
5ba6648f2a manage file with "with" 2012-04-10 13:14:29 -06:00
Thomas S Hatch
0e158b4752 fix cp module string formatting 2012-04-10 13:13:05 -06:00
Thomas S Hatch
c6112c2a25 update cli/key.py to correct string formatting 2012-04-10 13:11:05 -06:00
Thomas S Hatch
b295643d62 open files with "with" in the cli interface 2012-04-10 13:02:51 -06:00
Thomas S Hatch
58446e36ea Explicit pillar refresh whenever states are started
This fixes #1059 and makes the pillar data not need to be refreshed
manually for the state system.
2012-04-10 12:43:11 -06:00
Thomas S Hatch
979087682b Merge branch 'develop' of github.com:saltstack/salt into develop 2012-04-09 13:38:28 -06:00
Thomas S Hatch
708de85aa5 Add freeze.py for bbfreeze packaging
This simple script allows a user to make a binary distributable salt
system. Execute it in a system with salt already installed and a
platform specific group of all of the deps needed by Salt is created.
2012-04-09 13:31:51 -06:00
Thomas S Hatch
6017077cf7 Merge pull request #1067 from syphernl/patch-5
Fixes to special case grants (MySQL replication users)
2012-04-09 07:33:51 -07:00
Frank
2559c3b46a Fixes to special case grants (MySQL replication users) 2012-04-09 17:32:18 +03:00
Thomas S Hatch
bc6c7ca3c0 Merge pull request #1066 from syphernl/develop
Added calls to resolve hostnames to IP's and vise versa
2012-04-09 07:31:10 -07:00
Thomas S Hatch
39d6db422e Merge pull request #1065 from syphernl/patch-3
Fixes to the MySQL grants
2012-04-09 07:30:31 -07:00
Frank
4cd845c945 Fix documentation 2012-04-09 17:14:45 +03:00
Frank
509e99c606 Added calls to resolve hostnames to IP's and vise versa 2012-04-09 17:12:10 +03:00
Frank
a225f21661 Update salt/states/mysql_grants.py 2012-04-09 16:46:35 +03:00
Frank
e6b619cd86 Make sure the user_grants forwards the host to user_exists, otherwise it will lead to issues with non-localhost users (e.g. MySQL replication grants) 2012-04-09 16:37:14 +03:00
Frank
9581ef02d3 Also show the host when logging 'User does not exist' 2012-04-09 16:10:50 +03:00
Thomas S Hatch
f95c8a74e4 Add test for ext_pillar 2012-04-08 21:34:55 -06:00
Thomas S Hatch
24a9d3cea1 Add backend for initial ext_pillar tests 2012-04-08 21:31:08 -06:00
Thomas S Hatch
41a81f85d2 Merge pull request #1063 from fatbox/hosts-duplicate-entries
Ensure hosts.add_host isn't leaving duplicate entries around
2012-04-08 15:18:40 -07:00
Thomas S Hatch
e8cd3c8ecf Merge pull request #1062 from fatbox/mysql-grant-1060
Escape table name, only when it's not * [GH-1060]
2012-04-08 15:17:23 -07:00
Thomas S Hatch
6ae1bb854d Merge pull request #1058 from syphernl/patch-2
Report changes back in correct MySQL syntax for easy debugging
2012-04-08 15:16:55 -07:00
Evan Borgstrom
2d66c50d74 Ensure hosts.add_host isn't leaving duplicate entries around
Given a state entry like the following:

```
host-staging-web:
  host:
    - present
    - ip: 10.102.130.100
    - names:
      - staging-web.fqdn.com
      - staging-web
      - alt-staging-hostname
```

You'd end up with three different entries in your hosts file:

```
10.102.130.100		staging-web.fqdn.com
10.102.130.100		staging-web.fqdn.com	staging-web
10.102.130.100		staging-web.fqdn.com	staging-web	alt-staging-hostname
```

This corrects it by removing the previous line before appending the
newly crafted on, and adds tests to prove it.
2012-04-08 14:33:30 -04:00
Evan Borgstrom
4292d0c4ae Escape table name, only when it's not * [GH-1060]
In my previous commit 1263b26 I had removed the table name from being
escape altogether because a value of '*' would generate an incorrect
grant statement. As pointed out in ticket [GH-1060] if you specify a
table name this would break the grant generation.

Now the table name is escaped only if it's not '*' which allows both
use cases to work.
2012-04-08 11:15:47 -04:00
Frank
945aa1c6ae Report changes back in correct MySQL syntax for easy debugging 2012-04-08 15:30:33 +03:00