Comments (5)
@BigglesZX any progress on this?
from salt-common.
@holms Hi there - I'm not completely sure that the tz data can be loaded completely automatically in a state, but I can look into it if you like? Are you using these states yourself? Thanks for writing.
from salt-common.
Yeah I'm using some of them. I've came across idea with cmd.run
and unless
. Probably will put this to mysql-formula. First of all timezones installed by default, so all is left it's to perform mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
with cmd.run
and check with unless
if that table timezones already exist in mysql
database. :)
from salt-common.
@holms That's very helpful, thank you. I'll try to look at this in the next couple of days.
from salt-common.
@holms That's now done - seems to work on my side! New state is here.
You'll need to add it to your project's top.sls
too as per here.
Hope that works for you too - let me know if you have any issues. I wasn't able to figure out how to run the load command conditionally by checking if the table already existed, so if you know how to do that feel free to submit a PR!
from salt-common.
Related Issues (6)
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 salt-common.