Page MenuHomeDevCentral

Provision PostgreSQL containers
ClosedPublic

Authored by dereckson on Nov 10 2018, 17:34.

Details

Summary

Like for MySQL and Redis, the version/image can be set
with image/version keys.

Test Plan

Deploy a container for Sentry

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

dereckson requested review of this revision.Nov 10 2018, 17:34
dereckson created this revision.
dereckson accepted this revision.Nov 10 2018, 17:38
This revision is now accepted and ready to land.Nov 10 2018, 17:38
$ salt equatower state.sls roles/paas-docker/containers/postgresql
equatower:
----------
          ID: /srv/sentry_db/postgresql
    Function: file.directory
      Result: True                                                                                                                                            
     Comment: Directory /srv/sentry_db/postgresql updated
     Started: 17:35:40.024081
    Duration: 49.16 ms
     Changes:   
              ----------
              /srv/sentry_db/postgresql:
                  New Dir
----------
          ID: selinux_context_sentry_db_postgresql_data
    Function: selinux.fcontext_policy_present
        Name: /srv/sentry_db/postgresql
      Result: True
     Comment: 
     Started: 17:35:40.076026
    Duration: 7766.184 ms
     Changes:   
              ----------
              new:
                  ----------
                  /srv/sentry_db/postgresql:
                      ----------
                      filetype:
                          all files
                      sel_type:
                          container_file_t
              old:
                  ----------
----------
          ID: selinux_context_sentry_db_postgresql_data_applied
    Function: selinux.fcontext_policy_applied
        Name: /srv/sentry_db/postgresql
      Result: True
     Comment: 
     Started: 17:35:47.843316
    Duration: 60.945 ms
     Changes:   
              ----------
              /srv/sentry_db/postgresql:
                  ----------
                  new:
                      ----------
                      sel_type:
                          container_file_t
                  old:
                      ----------
                      sel_type:
                          unlabeled_t
----------
          ID: sentry_db
    Function: docker_container.running
      Result: True
     Comment: Created container 'sentry_db'
     Started: 17:35:47.942555
    Duration: 8136.003 ms
     Changes:   
              ----------
              container_id:
                  ----------
                  added:
                      9514e74ecec76fcfed55a89b2297afe42a73ab732bec794bd9c8221d4d91b4b8                                                                        
              state:
                  ----------
                  new:
                      running
                  old:
                      None

Summary for equatower
------------
Succeeded: 4 (changed=4)
Failed:    0
------------
Total states run:     4
Total run time:  16.012 s
This revision was automatically updated to reflect the committed changes.