Skip to content
Snippets Groups Projects
Select Git revision
  • 2322ff67fd8089ab6df8d56d796532f42bbfa06a
  • master default
  • v0.52.5
  • v0.52.4
  • v0.52.3
  • v0.52.2
  • v0.52.1
  • v0.52.0
  • v0.51.0
  • v0.50.0
  • v0.49.0
11 results

defaults.yaml

Blame
    • Imran Iqbal's avatar
      2322ff67
      ci(yamllint): add rule `empty-values` & use new `yaml-files` setting · 2322ff67
      Imran Iqbal authored
      * Semi-automated using https://github.com/myii/ssf-formula/pull/27
      * Fix (or ignore) errors shown below:
      
      ```bash
      mysql-formula$ yamllint -s .
      ./mysql/osfamilymap.yaml
        46:14     error    empty value in block mapping  (empty-values)
        66:14     error    empty value in block mapping  (empty-values)
        67:14     error    empty value in block mapping  (empty-values)
        68:16     error    empty value in block mapping  (empty-values)
        69:17     error    empty value in block mapping  (empty-values)
        70:16     error    empty value in block mapping  (empty-values)
        87:7      error    empty value in block mapping  (empty-values)
        216:14    error    empty value in block mapping  (empty-values)
        217:17    error    empty value in block mapping  (empty-values)
      
      ./mysql/defaults.yaml
        29:10     error    empty value in block mapping  (empty-values)
        30:11     error    empty value in block mapping  (empty-values)
      ```
      ci(yamllint): add rule `empty-values` & use new `yaml-files` setting
      Imran Iqbal authored
      * Semi-automated using https://github.com/myii/ssf-formula/pull/27
      * Fix (or ignore) errors shown below:
      
      ```bash
      mysql-formula$ yamllint -s .
      ./mysql/osfamilymap.yaml
        46:14     error    empty value in block mapping  (empty-values)
        66:14     error    empty value in block mapping  (empty-values)
        67:14     error    empty value in block mapping  (empty-values)
        68:16     error    empty value in block mapping  (empty-values)
        69:17     error    empty value in block mapping  (empty-values)
        70:16     error    empty value in block mapping  (empty-values)
        87:7      error    empty value in block mapping  (empty-values)
        216:14    error    empty value in block mapping  (empty-values)
        217:17    error    empty value in block mapping  (empty-values)
      
      ./mysql/defaults.yaml
        29:10     error    empty value in block mapping  (empty-values)
        30:11     error    empty value in block mapping  (empty-values)
      ```
    pillar.example 6.30 KiB
    mysql:
      global:
        client-server:
          default_character_set: utf8
    
      clients:
        mysql:
          default_character_set: utf8
        mysqldump:
          default_character_set: utf8
    
      library:
        client:
          default_character_set: utf8
    
      server:
        # Use this account for database admin (defaults to root)
        root_user: 'admin'
        # root_password: '' - to have root@localhost without password
        root_password: 'somepass'
        root_password_hash: '*13883BDDBE566ECECC0501CDE9B293303116521A'
        user: mysql
        # If you only manage the dbs and users and the server is on
        # another host
        host: 123.123.123.123
        # my.cnf sections changes
        mysqld:
          # you can use either underscore or hyphen in param names
          bind-address: 0.0.0.0
          log_bin: /var/log/mysql/mysql-bin.log
          datadir: /var/lib/mysql
          port: 3307
          binlog_do_db: foo
          auto_increment_increment: 5
          binlog-ignore-db:
           - mysql
           - sys
           - information_schema
           - performance_schema
        mysql:
          # my.cnf param that not require value
          no-auto-rehash: noarg_present
    
      salt_user:
        salt_user_name: 'salt'
        salt_user_password: 'someotherpass'
        grants:
          - 'all privileges'
    
      # Manage config
      config:
        file: ~/.my.cnf
        sections:
          client:
            port: 33306
            socket: /var/lib/mysql-socket/mysql.sock
          mysqld_safe:
            plugin-dir: '~/mysql/plugins'
          mysqld:
            user: myself
            port: 33306
            datadir: ~/mysql/datadir
        apparmor:
          dir: /etc/apparmor.d/local
          file: usr.sbin.mysqld
    
      # Manage databases
      database:
        # Simple definition using default charset and collate
        - foo
        # Detailed definition
        - name: bar
          character_set: utf8
          collate: utf8_general_ci
        # Delete DB
        - name: obsolete_db
          present: False
      schema:
        foo:
          load: True
          source: salt://{{ tpldir }}/files/foo.schema
        bar:
          load: False
        baz:
          load: True
          source: salt://{{ tpldir }}/files/baz.schema.tmpl
          template: jinja
        qux:
          load: True
          source: salt://{{ tpldir }}/files/qux.schema.tmpl
          template: jinja
          context:
            encabulator: Turbo
            girdlespring: differential
        quux:
          load: True
          source: salt://{{ tpldir }}/files/qux.schema.tmpl
          template: jinja
          context:
            encabulator: Retro
            girdlespring: integral
    
      # Manage users
      # you can get pillar for existing server using scripts/import_users.py script
      user:
        frank:
          password: 'somepass'
          host: localhost
          databases:
            - database: foo
              grants: ['select', 'insert', 'update']
              escape: True
            - database: bar
              grants: ['all privileges']
        bob:
          password_hash: '*6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4'
          host: '%' # Any host
          ssl: True
          ssl-X509: True
          ssl-SUBJECT: Subject
          ssl-ISSUER: Name
          ssl-CIPHER: Cipher
          databases:
            # https://github.com/saltstack/salt/issues/41178
            # If you want to refer to databases using wildcards, turn off escape so
            # the renderer does not escape them, enclose the string in '`' and
            # use two '%'
            - database: '`foo\_%%`'
              grants: ['all privileges']
              grant_option: True
              escape: False
            - database: bar
              table: foobar
              grants: ['select', 'insert', 'update', 'delete']
        nopassuser:
          password: ~
          host: localhost
          databases: []
        application:
          password: 'somepass'
          mine_hosts:
            target: "G@role:database and *.example.com"
            function: "network.get_hostname"
            expr_form: compound
          databases:
            - database: foo
              grants: ['select', 'insert', 'update']
    
        # Remove a user
        obsoleteuser:
          host: localhost
          # defaults to True
          present: False
    
      # Override any names defined in map.jinja
      # serverpkg: mysql-server
      # clientpkg: mysql-client
      # service: mysql
      # pythonpkg: python-mysqldb
      # devpkg: mysql-devel
      # debconf_utils: debconf-utils
    
      # Install MySQL headers
      dev:
        # Install dev package - defaults to False
        install: False
    
      macos:
        products:
          community_server:
            enabled: True    # default
            url: https://downloads.mysql.com/archives/get/file/mysql-8.0.11-macos10.13-x86_64.dmg
            sum: 'md5=602a84390ecf3d82025b1d99fc594124'
          workbench:
            enabled: True    # default
            url: https://downloads.mysql.com/archives/get/file/mysql-workbench-community-8.0.11-rc-macos-x86_64.dmg
            sum: 'md5=37c5ae5bd75a4e1804ae6e0127d68611'
          cluster:
            enabled: False  #default
            url: https://downloads.mysql.com/archives/get/file/mysql-cluster-gpl-7.6.6-macos10.13-x86_64.dmg
            sum: 'md5=0df975908e7d8e4e8c1003d95edf4721'
          router:
            enabled: False  #default
            url: https://downloads.mysql.com/archives/get/file/mysql-router-8.0.11-macos10.13-x86-64bit.dmg
            sum: 'md5=8dd536f2f223933ecbfb8b19e54ee2f6'
          utilities:
            enabled: False  #default
            url: https://downloads.mysql.com/archives/get/file/mysql-utilities-1.6.5-macos10.12.dmg
            sum: 'md5=4c8e75bb217b8293dcdeb915b649c2c8'
          shell:
            enabled: False  #default
            url: https://downloads.mysql.com/archives/get/file/mysql-shell-8.0.11-macos10.13-x86-64bit.dmg
            sum: 'md5=43db4f0fc39f88c1d7be4a4f52cec363'
          proxy:
            enabled: False  #default
            url: https://downloads.mysql.com/archives/get/file/mysql-proxy-0.8.5-osx10.7-x86-32bit.tar.gz
            sum: 'md5=107df22412aa8c483d2021e1af24ee22'
          connector:
            enabled: False  #default
            url: https://downloads.mysql.com/archives/get/file/mysql-connector-nodejs-8.0.11.tar.gz
            sum: 'md5=dece7fe5607918ba68499ef07c31508d'
          forvisualstudio:
            enabled: False  #default
            url: https://downloads.mysql.com/archives/get/file/mysql-for-visualstudio-2.0.4-src.zip
            sum: 'md5=fcf39316505ee2921e31a431eae77a9c'
          forexcel:
            enabled: False  #default
            url: https://downloads.mysql.com/archives/get/file/mysql-for-excel-1.3.6-src.zip
            sum: 'md5=2cc8b65eb72a1b07a6e4e2665e2a29e3'
          notifier:
            enabled: False  #default
            url: https://downloads.mysql.com/archives/get/file/mysql-notifier-1.1.6-src.zip
            sum: 'md5=349f1994681763fd6626a8ddf6be5363'