[Mageia-sysadm] [sysadmin-commits] [2406] First steps to create infra_1 distro

Michael Scherer misc at zarb.org
Mon Feb 13 23:16:15 CET 2012


Le lundi 13 février 2012 à 23:02 +0100, root at mageia.org a écrit :
> Revision
>         2406
> Author
>         pterjan
> Date
>         2012-02-13 23:02:18 +0100 (Mon, 13 Feb 2012)
> Log Message
> First steps to create infra_1 distro
> Modified Paths
>       * puppet/modules/buildsystem/manifests/create_upload_dir.rb
>       * puppet/modules/buildsystem/templates/mgarepo.conf
>       * puppet/modules/buildsystem/templates/submit-todo.conf
>       * puppet/modules/buildsystem/templates/submit-upload.conf
> Added Paths
>       * puppet/modules/buildsystem/templates/iurt/infra_1.conf
> Modified: puppet/modules/buildsystem/manifests/create_upload_dir.rb
> ===================================================================
> --- puppet/modules/buildsystem/manifests/create_upload_dir.rb
2012-02-13 21:01:00 UTC (rev 2405)
> +++ puppet/modules/buildsystem/manifests/create_upload_dir.rb
2012-02-13 22:02:18 UTC (rev 2406)
> @@ -25,5 +25,12 @@
>                  end
>              end
>          end
> +
> +     rel 'infra_1'
> +     rep = 'core'
> +     med = 'release'
> +     file [@name, st, rel].join('/'), :ensure => 'directory', :owner
=> @owner, :group => @group
> +     file [@name, st, rel, rep].join('/'), :ensure =>
'directory', :owner => @owner, :group => @group
> +     file [@name, st, rel, rep, med].join('/'), :ensure =>
'directory', :owner => @owner, :group => @group, :mode => 0775
>      end
>  end

For future proofing, i guess we could have a single declaration of the
version ( ie 1, but later 2, 3 ), and then use it everywhere .


>
>
> Modified: puppet/modules/buildsystem/templates/submit-upload.conf
> ===================================================================
> --- puppet/modules/buildsystem/templates/submit-upload.conf
2012-02-13 21:01:00 UTC (rev 2405)
> +++ puppet/modules/buildsystem/templates/submit-upload.conf
2012-02-13 22:02:18 UTC (rev 2406)
> @@ -17,6 +17,8 @@
>          svn: svn+ssh://svn.<%= domain %>/svn/packages/cauldron/
>          1:
>              arch: i586 x86_64
> +        infra_1:
> +            arch: i586 x86_64
>          cauldron:
>              arch: i586 x86_64

I wonder if we could refactor this ( ie, have some alias for i586
x86_64, to ease the roll out of arm ). The same goes for refactoring, by
the way.

> @@ -165,10 +182,12 @@
>                 authorized_arches: none
>                 mode: freeze
>
> +           infra_1:
> +               authorized_users: ^blino|boklm|buchan|colin|dams|
dmorgan|misc|nanardon|pterjan|tmb$
> +               mode: freeze
> +

Could we have a group here ( instead of a list of user ) ?
( if not, I think it would be quite easy to add ).

-- 
Michael Scherer




More information about the Mageia-sysadm mailing list