StackStorm / chef-stackstorm

DEPRECATED! Community-maintained Chef Cookbook to deploy StackStorm, IFTTT for Ops
https://supermarket.chef.io/cookbooks/stackstorm
Apache License 2.0
16 stars 10 forks source link

Moving to packaging. #2

Closed sysbot closed 8 years ago

sysbot commented 8 years ago

Per [1], packages are now installed via Packagecloud instead of from source. Related python/git/build and pip recipes are removed in favor of virtualenv packages.

[1] https://stackstorm.com/2016/05/03/road-to-packages/

Kami commented 8 years ago

Awesome, nice work :+1:

Did you happen to have a chance to test those changes end to end and verify that everything works? I'm just wondering because this repo was quite out of date and it's possible that some other things also need to be updated / changed :)

sysbot commented 8 years ago

I haven't tested every code path but the full convergence is working as is, assuming stmistral get merged first. For the rest of the code paths I recommend adding Inspec/Unit tests.

dennybaa commented 8 years ago

Generally there's a lot of outdated code for components (one package like st2actions contains several services) it should be reworked since now it's only one bundle package. Second thing is that the stackstorm_service LWRP actually is not needed and should be deprecated since all the packages come with built-in service files, the services should be just started after configuration takes place....

dennybaa commented 8 years ago

@sysbot This is nice you decided to tackle it, thank you! It would be nice if you could also cover the mentioned issues.

shortdudey123 commented 8 years ago

@dennybaa

Second thing is that the stackstorm_service LWRP actually is not needed

I don't see any LWRP's in this cookbook (I do see a StackstormCookbook::RecipeHelpers. stackstorm_service method, not sure if thats what you are talking about)

sysbot commented 8 years ago

Yeah im a bit curious about the stackstorm_service bit, I'll work out something (or remove) and add a commit.

sysbot commented 8 years ago

In regard to the components, it seemed that the installation guide is also out-of-date, for api service it suggested sudo st2ctl restart-component st2api but that's not the case anymore as demonstrated here.

vagrant@default-ubuntu-1404:/etc/init.d$ sudo st2ctl restart-component st2api
initctl: Unknown instance:
vagrant@default-ubuntu-1404:/etc/init.d$ sudo service st2api restart
stop: Unknown instance:
st2api start/running, process 22552
sysbot commented 8 years ago

Let me know if there's anything else you want to see fix here. Thanks.

shortdudey123 commented 8 years ago

@sysbot can you rebase on master?

sysbot commented 8 years ago

@shortdudey123 I've added the rubocop fixes as well. Let me know if this is good to merge. Thanks.

shortdudey123 commented 8 years ago

can you add this to the correct spot in .rubocop.yml due to the newest release? Unless @Kami thinks rubocop's defaults should be followed

Style/NumericLiteralPrefix:
  Description: 'Use smallcase prefixes for numeric literals.'
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#numeric-literal-prefixes'
  EnforcedOctalStyle: zero_only
  Enabled: true

Also, can you fix the other error? libraries/recipe_helpers.rb:16:5: W: Lint/UselessAccessModifier: Useless private access modifier.

sysbot commented 8 years ago

@shortdudey123 fixed.

Kami commented 8 years ago

@sysbot Since you are more active on this repository then we are these days (we are busy with advancing the core platform and other things), I just gave you direct commit privileges to this repo (you should receive an invite to your email address).

Feel free to directly merged changes you think are good to the repository, but it would still be good if you create a PR for each change so other people can more easily see what is happening and chime in if they get a chance :)

sysbot commented 8 years ago

@Kami thanks for the invite. Yup will do PR and solicit for comments as normal.

shortdudey123 commented 8 years ago

looking good to me :)

sysbot commented 8 years ago

Just double check and successfully converge in test-kitchen still. Merging.