Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

eucaconsole updates in faststart #368

Open
wants to merge 1 commit into
base: euca-4.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions recipes/create-first-resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,12 @@
execute "Running an instance" do
command "euca-run-instances --region #{node["eucalyptus"]["dns"]["domain"]} -k my-first-keypair $(euca-describe-images --region #{node["eucalyptus"]["dns"]["domain"]} | grep default | grep emi | cut -f 2)"
end

service "eucaconsole" do
action :nothing
end

execute "Update console.ini with ufshost = #{node["eucalyptus"]["dns"]["domain"]}" do
command "sed -i 's/ufshost = localhost/ufshost = #{node["eucalyptus"]["dns"]["domain"]}/' /etc/eucaconsole/console.ini"
notifies :restart, "service[eucaconsole]", :delayed
end
4 changes: 4 additions & 0 deletions recipes/user-console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
execute "setsebool httpd_can_network_connect true" do
command "/usr/sbin/setsebool -P httpd_can_network_connect 1"
end
execute "restorecon /etc/eucaconsole/console.crt /etc/eucaconsole/console.key" do
command "restorecon /etc/eucaconsole/console.crt /etc/eucaconsole/console.key"
only_if "/usr/sbin/getenforce | grep Enabled"
end
end

service "eucaconsole" do
Expand Down