saltstack-formulas / mongodb-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
31 stars 121 forks source link

Add MongoDB Compass states #66

Closed noelmcloughlin closed 5 years ago

noelmcloughlin commented 5 years ago

This PR builds on #63 with further improvements-

Compass

          ID: mongodb compass archive mongodb-compass-community-1.17.0-darwin-x64.dmg download
    Function: file.directory
        Name: /tmp/mongodbtmp
      Result: True
     Comment: The directory /tmp/mongodbtmp is in the correct state
     Started: 22:27:53.877064
    Duration: 1.435 ms
     Changes:   
----------
          ID: mongodb compass archive mongodb-compass-community-1.17.0-darwin-x64.dmg download
    Function: file.directory
        Name: /opt/mongodb-compass-community-1.17.0-darwin-x64.dmg/
      Result: True
     Comment: Directory /opt/mongodb-compass-community-1.17.0-darwin-x64.dmg updated
     Started: 22:27:53.878624
    Duration: 1.183 ms
     Changes:   
              ----------
              /opt/mongodb-compass-community-1.17.0-darwin-x64.dmg:
                  New Dir
----------
          ID: mongodb compass archive mongodb-compass-community-1.17.0-darwin-x64.dmg download
    Function: cmd.run
        Name: curl -s -L -o /tmp/mongodbtmp/mongodb-compass-community-1.17.0-darwin-x64.dmg https://downloads.mongodb.com/compass/mongodb-compass-community-1.17.0-darwin-x64.dmg
      Result: True
     Comment: Command "curl -s -L -o /tmp/mongodbtmp/mongodb-compass-community-1.17.0-darwin-x64.dmg https://downloads.mongodb.com/compass/mongodb-compass-community-1.17.0-darwin-x64.dmg" run
     Started: 22:27:53.879947
    Duration: 146471.471 ms
     Changes:   
              ----------
              pid:
                  56133
              retcode:
                  0
              stderr:
              stdout:
----------
          ID: mongodb compass archive mongodb-compass-community-1.17.0-darwin-x64.dmg download
    Function: module.run
        Name: file.check_hash
      Result: True
     Comment: Module function file.check_hash executed
     Started: 22:30:20.353523
    Duration: 248.946 ms
     Changes:   
              ----------
              ret:
                  True
----------
          ID: mongodb compass archive mongodb-compass-community-1.17.0-darwin-x64.dmg install
    Function: macpackage.installed
        Name: /tmp/mongodbtmp/mongodb-compass-community-1.17.0-darwin-x64.dmg
      Result: True
     Comment: MongoDB Compass Community.app installed
     Started: 22:30:20.602845
    Duration: 4634.823 ms
     Changes:   
              ----------
              installed:
                  - MongoDB Compass Community.app

check MacOS

$ launchctl list | grep mongo
-   78  org.mongo.mongodb.mongod
-   78  org.mongo.mongodb.mongos
noelmcloughlin commented 5 years ago

Thanks for reviewing @aboe76