end
def check_auto_admin
- if User.where("uuid not like '%-000000000000000'").where(:is_admin => true).count == 0 and not Rails.configuration.auto_admin_user.nil?
+ if User.where("uuid not like '%-000000000000000'").where(:is_admin => true).count == 0 and Rails.configuration.auto_admin_user
if current_user.email == Rails.configuration.auto_admin_user
self.is_admin = true
self.is_active = true
action_mailer.delivery_method: :test
active_support.deprecation: :stderr
active_record.mass_assignment_sanitizer: :strict
+ uuid_prefix: zzzzz
common:
secret_token: ~
# In the default configuration, authentication happens through the Arvados SSO
# server, which uses openid against Google's servers, so in that case this
# should be an address associated with a Google account.
- auto_admin_user: ~
+ auto_admin_user: false
Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
end << '172.16.0.23'
%>
- # You must customize these. See application.default.yml for information.
- compute_node_ami: ~
- compute_node_ec2_tag_enable: ~
- compute_node_domain: ~
- compute_node_spot_bid: ~
test:
uuid_prefix: zzzzz
+ secret_token: <%= rand(2**512).to_s(36) %>
common:
- secret_token: ~
- compute_node_nameservers:
- - 192.168.0.1
- - 172.16.0.1