saltstack-formulas / mongodb-formula

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

[FEATURE] three minor fixes to consider #87

Open noelmcloughlin opened 4 years ago

noelmcloughlin commented 4 years ago

Is your feature request related to a problem?

Describe the solution you'd like

General issue

export PATH=${PATH}:/usr/local/mongodb/mongod-4.2.6 {}


**On MacOS-**

- The formula should manage `mongod.sh` in  `/etc/defaults/` not `/etc/default/`
      ID: mongodb-config-install-mongod-environ_file
Function: file.managed
    Name: /etc/default/mongod.sh
  Result: True
 Comment: File /etc/default/mongod.sh is in the correct state
 Started: 20:43:29.766874
Duration: 22.894 ms

- There should be symlinks from `/usr/local/mongo-xxxx/bin/cmd` to `/usr/local/bin/cmd`

bobby@work % ls /usr/local/mongodb/mongod-4.2.6/bin bsondump mongo mongodump mongofiles mongoreplay mongos mongotop install_compass mongod mongoexport mongoimport mongorestore mongostat



### Describe alternatives you've considered
<!-- Describe any alternative solutions or features you've considered. -->

### Additional context
<!-- Add any other context about the feature request here. -->