Saltstack Official MongoDB Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123
  1. {%- from "mongodb/map.jinja" import server with context -%}
  2. db = db.getSiblingDB("{{ database_name }}");
  3. db.addUser({user: "{{ database_name }}", pwd: "{{ pillar.ceilometer.server.database.password }}",roles: [ "readWrite", "dbAdmin" ]});