Update/fix hubot URL, move variables to attributes
This commit is contained in:
@@ -140,14 +140,14 @@ ark "MediawikiHubot" do
|
||||
action :cherry_pick
|
||||
end
|
||||
|
||||
hal8000_freenode_data_bag_item = Chef::EncryptedDataBagItem.load('credentials', 'hal8000_freenode')
|
||||
webhook_token = hal8000_freenode_data_bag_item['webhook_token']
|
||||
hubot_credentials = Chef::EncryptedDataBagItem.load('credentials', 'hal8000_freenode')
|
||||
webhook_token = hubot_credentials['webhook_token']
|
||||
|
||||
template "#{node['mediawiki']['webdir']}/extensions/MediawikiHubot/DefaultConfig.php" do
|
||||
source "MediawikiHubot/DefaultConfig.php.erb"
|
||||
variables webhook_url: "http://localhost:8080/incoming/#{webhook_token}",
|
||||
room_name: "#kosmos",
|
||||
wiki_url: "https://wiki.kosmos.org/"
|
||||
variables webhook_url: "#{node['mediawiki']['hubot_base_url']}/incoming/#{webhook_token}",
|
||||
room_name: node['mediawiki']['hubot_room'],
|
||||
wiki_url: node['mediawiki']['url']
|
||||
end
|
||||
|
||||
ruby_block "configuration" do
|
||||
|
||||
Reference in New Issue
Block a user