Comments (13)
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.
One other thing to note. If you change remotes for git trees, you're supposed to clear the master cache.
from mysql-formula.
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.
Define "direct inclusion in the top file". Can you paste the relevant parts of your top file and your master config?
from mysql-formula.
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.
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.
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.
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.
So we can close this issue then?
from mysql-formula.
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.
@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.
@gravyboat I was using salt-ssh. Thank you.
from mysql-formula.
@c10b10 You got it! Hopefully this helps.
from mysql-formula.
Related Issues (20)
- 'mysql_database.present' was not found in SLS HOT 3
- Two databases, two pillar files, one minion HOT 2
- Fix empty values in osfamilymap.yaml
- [BUG] RedHat/CentOS state apply with root password fails HOT 4
- [FEATURE] User access for columns HOT 1
- [BUG] Either don't check for my.cnf rights or remove it if symbolic link HOT 2
- [BUG] GRANT SELECT not working for only 1 user on 2 specific databases. Works on others HOT 4
- Specified SLS 'mysql' in environment 'base' is not available on the salt master
- [BUG] Server is installed when only Client is desired HOT 8
- [BUG] Setting mountpoint breaks tplroot HOT 2
- [BUG] Using mysql:host should not check for package/service
- [BUG] Centos 8 - python client for mysql missing HOT 5
- [BUG] Unable to connect to MySQL using CentOS 8 HOT 2
- Last Update BUG HOT 2
- [FEATURE] Use conf.d folder instead of main cnf file, if available on system
- [BUG] MySQL root password vulnerability and proposed fix HOT 1
- [BUG] root_password not set on debian bullseye HOT 1
- [BUG] mysql.client state does not work out of the box HOT 2
- [FEATURE] Please add support for Jammy HOT 1
- [BUG] Arrays being dumped into config file in invalid form.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql-formula.