Giter Club home page Giter Club logo

Comments (6)

whiteinge avatar whiteinge commented on July 26, 2024

Installing Python 2.6 via EPEL on Cent 5 is extremely common but it's not the default so I think the best way to approach this is for people to override this package name via Pillar when the python26- package is preferred.

from mysql-formula.

Drachemann avatar Drachemann commented on July 26, 2024

Agreed that it's possible to install python 2.6 via other methods.. however it could be argued that using EPEL is the "default" as it's the recommend way in the SaltStack documentation. (http://docs.saltstack.com/en/latest/topics/troubleshooting/#red-hat-enterprise-linux-5)

Anyway, can just document it in the readme and plilar.example for now I guess, I'd still like to know if there's an easy way to filter this for future reference..

from mysql-formula.

whiteinge avatar whiteinge commented on July 26, 2024

You're right, of course, that EPEL is very likely to be enabled since that is how the vast majority of users will install Salt. We still can't make the assumption that also means users will want the Python 2.6 MySQL adapter. This is the reason that map.jinja values can be overridden via Pillar. Out of curiosity, are you looking to avoid using Pillar here?

In answer to your question, you could chain multiple filter_by calls together to match on multiple grains. Or you could match on a more specific grain such as the os_finger grain.

from mysql-formula.

Drachemann avatar Drachemann commented on July 26, 2024

Fair call. Not looking to avoid using Pillar.. To be honest it's just the nit-picking perfectionist in me that thinks it's technically incorrect default behaviour to install the mysql-python package in RHEL/CentOS 5, as it's a python 2.4 package and will never meet the requirements for the formula.

Again, not THAT big a deal.. :P

I think it's at least worth mentioning in the documentation. And cheers, I'll try the filter_by chaining to see if I can achieve what I want.

from mysql-formula.

whiteinge avatar whiteinge commented on July 26, 2024

will never meet the requirements for the formula.

Ah ha! I see where you're coming from now! I was thinking of this from "managing a MySQL installation" perspective and you're coming at this from a "using the formula" perspective.

You're right there's several states in this formula that call to Salt's MySQL execution module which requires the Python 2.6 db adapters since Salt requires Python 2.6. You're exactly right that dep should definitely be called out in the README. IMO the states that call out the MySQL execution/state modules should be moved into separate .sls files so that using them is an explicit opt-in rather than a hard requirement for the whole formula.

Sorry it took me a couple replies to get on the same page there. :-P

from mysql-formula.

noelmcloughlin avatar noelmcloughlin commented on July 26, 2024

#186 introduced osfamilymap and osmap. The Centos package should be fixed now.

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.