File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- $ar_databases = [' activerecord_unittest' , ' activerecord_unittest2' ]
1+ $ar_databases = [' activerecord_unittest' , ' activerecord_unittest2' ]
2+ $brightbox_list = ' /etc/apt/sources.list.d/brightbox-ruby-ng-precise.list'
23
34stage { 'ubuntu_packages_setup' :
45 before => Stage[' main' ]
78class apt_get_update1 {
89 exec { 'apt_get_update_exec1' :
910 command => ' /usr/bin/apt-get -y update' ,
10- user => ' root'
11+ user => ' root' ,
12+ unless => " /usr/bin/test -e ${brightbox_list} "
1113 }
1214}
1315class { 'apt_get_update1' :
2527}
2628
2729class apt_add_repository {
28- exec { '/usr/bin/apt-add-repository ppa:brightbox/ruby-ng' :
29- user => ' root'
30+ exec { '/usr/bin/apt-add-repository -y ppa:brightbox/ruby-ng' :
31+ user => ' root' ,
32+ creates => $brightbox_list
3033 }
3134}
3235class { 'apt_add_repository' :
You can’t perform that action at this time.
0 commit comments