Update example file

Update example

- Add more comments
- Remove ppa resources
This commit is contained in:
Dan Bode 2012-04-22 23:34:06 -07:00
parent 8fd3d19431
commit 4a750768cb

View File

@ -32,22 +32,6 @@ $swift_local_net_ip = $ipaddress_eth0
Exec { logoutput => true } Exec { logoutput => true }
#### update apt caches ########
stage { 'ppa':
before => Stage['main']
}
class { 'apt':
stage => 'ppa',
}
class { 'keystone::repo::trunk':
stage => 'ppa',
}
##### end apt cache updates ####
# #
# specifies that nodes with the cert names of # specifies that nodes with the cert names of
# swift_storage_1,2, and 3 will be assigned the # swift_storage_1,2, and 3 will be assigned the
@ -132,6 +116,7 @@ class role_swift_ringbuilder inherits role_swift {
local_net_ip => $swift_local_net_ip, local_net_ip => $swift_local_net_ip,
} }
# exports rsync gets that can be used to sync the ring files
@@swift::ringsync { ['account', 'object', 'container']: @@swift::ringsync { ['account', 'object', 'container']:
ring_server => $swift_local_net_ip ring_server => $swift_local_net_ip
} }
@ -172,7 +157,6 @@ class role_swift_storage inherits role_swift {
storage_local_net_ip => $swift_local_net_ip, storage_local_net_ip => $swift_local_net_ip,
} }
# TODO I need to wrap these in a define so that # TODO I need to wrap these in a define so that
# mcollective can collect that define # mcollective can collect that define
@ -198,6 +182,7 @@ class role_swift_storage inherits role_swift {
weight => 1, weight => 1,
} }
# sync ring databases if they have been exported
Swift::Ringsync<<||>> Swift::Ringsync<<||>>
} }