Sha256: a70ced18a74ddb59b883b19395b64f3e5ebb2789d42de56c99d8e1ed07e4c40c

Contents?: true

Size: 406 Bytes

Versions: 10

Compression:

Stored size: 406 Bytes

Contents

# Create feature for Smart Proxy
Feature.find_or_create_by_name('Salt')

# Add new viewing permissions to Viewer role
viewer = Role.find_by_name('Viewer')

if viewer
  Permission.where(:name => [:view_smart_proxies_salt_keys, :view_smart_proxies_salt_autosign, :view_salt_modules]).each do |permission|
    viewer.add_permissions!([permission.name]) unless viewer.permissions.include? permission
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_salt-4.0.1 db/seeds.d/75-salt_seeds.rb
foreman_salt-4.0.0 db/seeds.d/75-salt_seeds.rb
foreman_salt-3.0.2 db/seeds.d/75-salt-seeds.rb
foreman_salt-3.0.1 db/seeds.d/75-salt-seeds.rb
foreman_salt-3.0.0 db/seeds.d/75-salt-seeds.rb
foreman_salt-2.1.0 db/seeds.d/75-salt-seeds.rb
foreman_salt-2.0.2 db/seeds.d/75-salt-seeds.rb
foreman_salt-2.0.1 db/seeds.d/75-salt-seeds.rb
foreman_salt-2.0.0 db/seeds.d/75-salt-seeds.rb
foreman_salt-1.1.1 db/seeds.d/75-salt-seeds.rb