Comments (8)
The reason for having the startup levels commented out by default is that you could install redis and not want to have it enabled on boot. The upstart provider will uncomment the line if you call the enable action on the service. It seems to me having it disabled on boot by default is the safer option.
Thoughts?
from redisio.
Sorry misunderstood the ticket at first. I see the issue. Not sure of a good way to avoid this really while staying with defaulting to the service being disabled.
from redisio.
I agree with the logic, but don't love the config file churn of disabling and re-enabling on each run. I suppose it's technically possible that the file could be modified by commenting out the line, then the chef run could fail before it's reenabled. Seems very unlikely, by possible.
Perhaps a better option is to have the cookbook set to startup by default (seems like a reasonable default to me, but YMMV) and use an attribute to toggle the enable or disable function?
from redisio.
I say startup as default because, when it comes to running a sever (vs. e.g. a workstation), service startup on boot seems to follow the principle of least surprise.
from redisio.
I've been trying to puzzle a good solution to this. Maybe it does just make sense to have it not commented out initially.
from redisio.
I think maybe we should stick to the (albeit, imho, not great) way Ubuntu starts on boot. This would follow the principle of least surprise for that distro.
from redisio.
Closing due to inactivity.
If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!
Thanks,
Sous-Chefs
from redisio.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from redisio.
Related Issues (20)
- Add protected-mode in sentinel.conf HOT 2
- issue with changing config because attributes saved as node.normal HOT 2
- undefined method `selinux_policy_install' HOT 2
- Dangerfile should use failure instead of fail HOT 1
- Remove .rubocop.yml with Dangerfile HOT 1
- Update Changelog HOT 2
- Run latest cookstyle HOT 2
- Update builds to be parallel HOT 2
- redis.conf.erb version checks incorrectly on some sections
- Chef 16+ user_ulimit warning message HOT 1
- Fix all checks so they pass
- rename_commands not populating rename-command
- SELinux: Redis server running unconfined when installed from sources HOT 1
- After OS restart, redis listens only on loopback HOT 1
- Redis service should be restarted when installing a new version
- Missing required sentinel parameter master_ip
- WARNING: Sentinel was not able to save the new configuration on disk!!!: Permission denied HOT 2
- Dependency Dashboard
- Migrate integration tests from ServerSpec to InSpec
- redis config file should be updated as needed (desired state) HOT 1
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 redisio.