saltstack-formulas/postgres-formula

First state run fails

Closed this issue · 3 comments

Here is the output of state.highstate:

----------
          ID: /etc/postgresql/9.4/main
    Function: file.directory
      Result: False
     Comment: User postgres is not available Group postgres is not available
     Started: 15:54:34.472581
    Duration: 428.798 ms
     Changes:   
----------

The issue is that the following block is not requiring postgres to be already installed so the file does not exist yet:
https://github.com/saltstack-formulas/postgres-formula/blob/master/postgres/init.sls#L56

Actually this block: https://github.com/saltstack-formulas/postgres-formula/blob/master/postgres/init.sls#L8

but it appears there is a dependency problem for other files in this formula.

vutny commented

I guess this is already resolved and should be closed.

I recently reinstalled some VMs with this state and it is indeed fixed afaict. Thanks.