GithubHelp home page GithubHelp logo

Comments (13)

iggy avatar iggy commented on July 18, 2024

File is definitely there. Maybe your git tree isn't getting updated properly?

https://github.com/saltstack-formulas/mysql-formula/blob/master/mysql/defaults.yaml

from mysql-formula.

iggy avatar iggy commented on July 18, 2024

One other thing to note. If you change remotes for git trees, you're supposed to clear the master cache.

from mysql-formula.

c10b10 avatar c10b10 commented on July 18, 2024

I've set this up with direct inclusion in the top file. Could that affect
it?

Also, I've pruned the example pillar quite a bit. Are there values that are
mandatory?

On Joi, 23 iul. 2015 at 20:35 Brian Jackson [email protected]
wrote:

One other thing to note. If you change remotes for git trees, you're
supposed to clear the master cache.


Reply to this email directly or view it on GitHub
#85 (comment)
.

from mysql-formula.

iggy avatar iggy commented on July 18, 2024

Define "direct inclusion in the top file". Can you paste the relevant parts of your top file and your master config?

from mysql-formula.

c10b10 avatar c10b10 commented on July 18, 2024
  • master
file_roots:
  base:
    - /Users/c10b10/Projects/forwardwd/salttest/salt
    - /Users/c10b10/Projects/forwardwd/salttest/formulas/mysql-formula
  • salt/top.sls
base:
  '*':
    - core
    - tools.git
    - core.dotfiles
    - node
    - nginx
    - mysql
  • pillar/mysql.sls
mysql:
  server:
    # Use this account for database admin (defaults to root)
    root_user: 'admin'
    # root_password: '' - to have root@localhost without password
    root_password: 'AXZvhHoYmrXn'
    user: mysql
  # Manage databases
  database:
    - test
  schema:
    test:
      load: False
  user:
    c10b10:
      password: ''
      host: localhost
      databases: []
      # databases:
      #   - database: bar
      #     grants: ['all privileges']
    nopassuser:
      password: ~
      host: localhost
      databases: []

  # Override any names defined in map.jinja
  lookup:
    server: mysql-server
    client: mysql-client
    service: mysql-service
    python: python-mysqldb

from mysql-formula.

c10b10 avatar c10b10 commented on July 18, 2024

Lots of problems.

I fixed the missing template errors by passing the variables from the mysql_config state to the my.cnf jinja template:

mysql_config:
  file.managed:
    - name: {{ mysql.config.file }}
    - template: jinja
    - source: salt://mysql/files/my.cnf
    - defaults:
      rawmap: {{ rawmap }}
      supported_sections: {{ supported_sections }}

Then, the my.cnf config file was created with a trailing new space character, which I fixed by editing the last line of mysql/files/my.cnf to filter it out:

{{ datamap.config.append | default('') | replace("\\n","") }}

Now, I'm getting an authentication error:

[ERROR   ] JSON Render failed for:
Permission denied, no authentication information
[ERROR   ] No JSON object could be decoded

from mysql-formula.

iggy avatar iggy commented on July 18, 2024

So you hacked around a problem (instead of actually fixing it correctly), and then ran into more problems. Shocking. I suggest you figure out the original problem correctly.

from mysql-formula.

c10b10 avatar c10b10 commented on July 18, 2024

All the files were there, master cache was cleared, nothing worked. After hours of frustration I decided to drop the formula altogether and just write my own states. Thank you for your suggestion.

from mysql-formula.

iggy avatar iggy commented on July 18, 2024

So we can close this issue then?

from mysql-formula.

c10b10 avatar c10b10 commented on July 18, 2024

yes

On Sâm, 25 iul. 2015 at 00:53 Brian Jackson [email protected]
wrote:

So we can close this issue then?


Reply to this email directly or view it on GitHub
#85 (comment)
.

from mysql-formula.

gravyboat avatar gravyboat commented on July 18, 2024

@c10b10 We've encountered a similar issue over here if you're using salt-ssh and there is a proposed solution: #92 (comment) otherwise we haven't been able to duplicate this on a setup using a masterless setup, or a master/minion setup.

from mysql-formula.

c10b10 avatar c10b10 commented on July 18, 2024

@gravyboat I was using salt-ssh. Thank you.

from mysql-formula.

gravyboat avatar gravyboat commented on July 18, 2024

@c10b10 You got it! Hopefully this helps.

from mysql-formula.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.