Skip to content

Instantly share code, notes, and snippets.

@blkperl
Created August 13, 2013 06:55
Show Gist options
  • Save blkperl/6218501 to your computer and use it in GitHub Desktop.
Save blkperl/6218501 to your computer and use it in GitHub Desktop.
class cecs::role::openstack::swift_proxy {
class { '::openstack::swift::proxy':
swift_user_password => hiera('swift_user_password'),
keystone_host => 'dagger.cat.pdx.edu',
memcached => true,
swift_memcache_servers => ['127.0.0.1:11211'],
memcached_listen_ip => '127.0.0.1'
}
}
class cecs::role::openstack::swift_storage(
$storage_devices,
) {
class { '::openstack::swift::storage-node' :
swift_zone => '1',
swift_hash_suffix => 'swift_secret',
swift_local_net_ip => $::ipaddress_eth0,
storage_type => 'disk',
storage_base_dir => '/dev',
storage_mnt_base_dir => '/srv/node',
storage_devices => $storage_devices,
storage_weight => 1,
package_ensure => 'present',
byte_size => '1024',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment