Skip to content
This repository has been archived by the owner on Sep 13, 2018. It is now read-only.

enable band / panels plugin for puppet #78

Merged
merged 1 commit into from
May 3, 2016

Conversation

binary1230
Copy link
Contributor

  • hook up minimum subset of INI values needed to enable the band/panels plugins
  • band plugin depends on panels plugin for scheduling
  • more INI breakout is needed, but this is a good scaffolding for starting that work

this will be obsoleted if/when we do #28 , which we should probably really actually do. it's a decent bandaid for now though.

also FINALLY fixes #55 w00t.

- hook up minimum subset of INI values needed to enable the band/panels plugins
- band plugin depends on panels plugin for scheduling
- more INI breakout is needed, but this is a good scaffolding for starting that work
[dates]
<% if @stage_agreement_deadline %>
stage_agreement_deadline = <%= @stage_agreement_deadline %>
<% end -%>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there's a lot more to add here to get this working, but it's a good starting point

@kitsuta
Copy link
Contributor

kitsuta commented May 3, 2016

OMHBITY. +1

event_location = "<%= @event_location %>"
<% end -%>

<% if @panel_rooms %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this work as intended? Keeping in mind that, according to a quick Google search, our empty list is not considered falsey in Ruby.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, it ends up generating the following line in the INI file because our empty list is truthy in ruby:

puppet config for magstock says:

uber::plugin_panels::panel_rooms: ","

INI looks like:

panel_rooms = ,

If puppet doesn't specify anything, puppet's deftault is 'undef' which means that the configspec.ini value for panel_rooms of "panels_1", "panels_2", "panels_3", "panels_4" will be used instead.

@binary1230 binary1230 merged commit ba4b24c into master May 3, 2016
@binary1230
Copy link
Contributor Author

merging though it may need DB migrations (maybe not), will check it locally first.

@EliAndrewC
Copy link
Contributor

+1 belatedly, though much of this is still somewhat over my head. Like, I understand what I see, but I wouldn't have been able to write it from scratch myself.

@EliAndrewC EliAndrewC deleted the enable_band_panels_plugin branch May 5, 2016 04:49
@binary1230
Copy link
Contributor Author

btw, this PR replaces #67 however, that PR has a very thorough explanation of why it was done this way and some design considerations.

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.

add hide_schedule to panels .ini
3 participants