Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add disable_os_default recipe #224

Merged
merged 1 commit into from
Oct 19, 2016

Conversation

alepore
Copy link
Contributor

@alepore alepore commented Aug 20, 2015

When using redis from the ubuntu package, i use this simple recipe to disable the default OS init script.
Otherwise i can't use the init script provided by this recipe after a reboot.

Do you think something like this can be a useful addition?

@martinb3 martinb3 added this to the 2.next milestone Aug 21, 2015
@martinb3 martinb3 modified the milestones: 2.4.1 Bugfixing, 2.next Oct 14, 2015
recipe "redisio::redis_gem", "this recipe will install the redis ruby gem into the system ruby"
recipe "redisio::disable", "This recipe is used to stop the redis instances and disable them in the default run levels"
recipe "redisio::redis_gem", "This recipe will install the redis ruby gem into the system ruby"
recipe "redisio::disable_os_default", "This recipe can be used to disable the default OS redis init scrip"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo at the end scrip

@alepore alepore force-pushed the disable_os_default branch from 1efdaea to 2a52f6c Compare April 9, 2016 12:48
@alepore
Copy link
Contributor Author

alepore commented Apr 9, 2016

rebased and updated

@martinb3
Copy link
Contributor

👍 I'm good with this

@shortdudey123 shortdudey123 mentioned this pull request Jul 16, 2016

if service_name
service service_name do
action :disable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

action [ :stop, :disable ]

@devsibwarra
Copy link

Hit this earlier today. Added the service resource with suggestions by @shortdudey123 to my wrapper script.

This PR probably needs a re-base, then 👍 from me

@brianbianco
Copy link
Contributor

@alepore Can you rebase this for a merge ?

@alepore alepore force-pushed the disable_os_default branch from 2a52f6c to 3d34784 Compare October 19, 2016 06:03
@alepore
Copy link
Contributor Author

alepore commented Oct 19, 2016

updated and rebased!

@shortdudey123
Copy link
Contributor

Inspecting 1 file
W

Offenses:

recipes/disable_os_default.rb:23:1: C: Style/CaseIndentation: Indent when as deep as case.
when 'debian', 'ubuntu'
^^^^
recipes/disable_os_default.rb:25:1: C: Style/CaseIndentation: Indent when as deep as case.
when 'redhat', 'centos', 'fedora', 'scientific', 'suse', 'amazon'
^^^^
recipes/disable_os_default.rb:27:1: W: Lint/EndAlignment: end at 27, 0 is not aligned with case at 22, 15.
end
^^^

1 file inspected, 3 offenses detected

@alepore alepore force-pushed the disable_os_default branch from 3d34784 to d7c831b Compare October 19, 2016 06:32
@alepore
Copy link
Contributor Author

alepore commented Oct 19, 2016

rubocop 🆗

@shortdudey123
Copy link
Contributor

awesome! looking good to me :)

Copy link

@devsibwarra devsibwarra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@brianbianco brianbianco merged commit 05b6d43 into sous-chefs:master Oct 19, 2016
@brianbianco
Copy link
Contributor

Thanks all involved for pushing this through.

@shortdudey123 shortdudey123 modified the milestones: 2.6.0, 2.4.1 Bugfixing Apr 25, 2017
shortdudey123 added a commit that referenced this pull request May 10, 2017
- Update 'bind' config comments ([#293](#293))
- Add disable_os_default recipe ([#224](#224))
- Use the config's ulimits if set and is > max_clients ([#234](#234))
- Add Travis config ([#299](#299))
- Fix test failures (FoodCritic and Rubocop) ([#298](#298))
- Fix TravisCI builds ([#300](#300))
- Add repl-backlog-size, repl-backlog-ttl, and aof-load-truncated options ([#278](#278))
- Add sentinel_bind to bind sentinel to different IPs ([#306](#306))
- Cleanup deprecation warnings ([#301](#301))
- Fix version detection with epoch version numbers from deb/ubuntu ([#294](#294))
- Restrict VM redis config to <= 2.4 ([#322](#322))
- Rename_commands should be checked for nil before empty ([#311](#311))
- Fixup foodcritic, rubocop, and kitchen testing ([#324](#324))
  - Note: this drops support for Chef < 11
- Add min-slaves redis options ([#313](#313))
- Allow /etc/init start after sigterm from system or user ([#310](#310))
- Check user existence with Etc, not ohai node attributes ([#303](#303))
- Various systemd-related improvements ([#302](#302))
- Update serverspec testing with correct OS's for systemd ([#329](#329))
- Add kitchen-dokken testing to Travis ([#330](#330))
- Add fedora-25 to kitchen testing and clean up kitchen config ([#331](#331))
- Fix systemd paths for sentinel service ([#332](#332))
- Add redis-package and sentinel to Travis kitchen verify ([#334](#334))
- Add breadcrumb-file creation condition as attribute ([#268](#268))
- Fix cluster options in README ([#333](#333))
- Fix systemd loader to use descriptors instead of max_clients+32 ([#338](#338))
- Add SELinux support ([#305](#305))
- Make source of redis.conf template configurable ([#341](#341))
- Support sentinel notification-script and client-reconfig-script ([#342](#342))
@lock
Copy link

lock bot commented Nov 28, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 28, 2018
@alepore alepore deleted the disable_os_default branch November 29, 2018 07:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants