Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Big cookbook refactoring #101

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

cyberflow
Copy link
Collaborator

It's try to rewrite cookbook to Chef resources. It's tested for 5.x but can be use for install 4.x as well. I think that we can deprecated 3.x versions for now. Please review it.

@drenalin23
Copy link
Collaborator

I will try to pull this branch down today and take a look. Thanks for working on this.

kb_user = find_kb_resource(run_context, :kibana_user, new_resource)
# Create service
#
if kb_install.version == 'tarball'

Choose a reason for hiding this comment

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

kb_install.type == :tarball ?

@isaoshimizu
Copy link

isaoshimizu commented Feb 2, 2017

https://github.com/realityforge/chef-kibana/pull/101/files#diff-5bae58210cebc9fc0b3fdd3c12b3a3b9R25

When install version 5.x kibana, command is blank.
require when /^4/, /^5/ condition.

add to_s for kb_install.type condition
@cyberflow
Copy link
Collaborator Author

@isaoshimizu Which command is blank? Can you show me line please.

@isaoshimizu
Copy link

@cyberflow templates/default/upstart.conf.erb Line 22

@isaoshimizu
Copy link

👍

Chris Minton added 4 commits February 19, 2017 23:57
- enable kibana 5 tarball install to pull from the correct repo location
- make the service template configurable & use the attributes already created
- allow redhat and centos installs to configure the kibana service
- add a CentOS/RHEL 6 init.d service template.
- add unit/integration tests for nginx and kibana5
@@ -126,7 +72,7 @@
default['kibana']['nginx']['server_name'] = 'kibana'

#<> The nginx configuration source
default['kibana']['nginx']['source'] = node['kibana']['version'] == '4' ? 'nginx4.conf.erb' : 'nginx.conf.erb'
default['kibana']['nginx']['source'] = node['kibana']['version'] == '4' ? 'nginx4.conf.erb' : 'nginx5.conf.erb'

Choose a reason for hiding this comment

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

Probably need to make this conditional test a regex (=~ /^4/) to match all 4.x versions

action :nothing
end
pkg_r.run_action(:install)
new_resource.updated_by_last_action(true) if pkg_r.updated_by_last_action?

Choose a reason for hiding this comment

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

Using install_type = package will cause the kibana package to upgrade to the latest version in the repository instead of the one specified in node[kibana][version]. Thoughts on adding version determine_version(new_resource, node) to this package resource?

@mburns
Copy link
Collaborator

mburns commented Mar 15, 2018

Hi @cyberflow, I'm lending a hand with maintaining this repo and I'd like to revive your PR and get it mergeable again.

Are you available/interested to rebase this branch by chance?

@mburns mburns mentioned this pull request Mar 16, 2018
3 tasks
mburns added a commit to mburns/chef-kibana that referenced this pull request Mar 16, 2018
@mburns
Copy link
Collaborator

mburns commented Mar 16, 2018

I'd like to break this up and land separately:


  • v1.0.0 land resource/provider logic, update recipes to use the HWRPs (easy upgrade path for existing users)
  • v2.0.0 deprecate/remove recipe-level logic

mburns added a commit to mburns/chef-kibana that referenced this pull request Mar 17, 2018
mburns added a commit to mburns/chef-kibana that referenced this pull request Mar 18, 2018
@cyberflow
Copy link
Collaborator Author

Hi @mburns
Yes, I available/interested. What do i need to do?

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.

7 participants