[katello-devel] Fedora 17 Stuff So Far

Miroslav Suchý msuchy at redhat.com
Tue Jul 31 07:21:30 UTC 2012


On 07/30/2012 05:54 PM, Jason Rist wrote:
> https://fedorahosted.org/katello/wiki/f17_research
>
> -J

See comments inline:

>  The above requires you to add the two separate repos as deps:
>
> http://repos.fedorapeople.org/repos/pulp/pulp/v1/stable/fedora-17/x86_64/
>
> http://repos.fedorapeople.org/repos/candlepin/candlepin/fedora-16/x86_64/



Any reason why you are not using:
http://fedorapeople.org/groups/katello/releases/yum/katello-candlepin/Fedora/17/
http://fedorapeople.org/groups/katello/releases/yum/katello-pulp/Fedora/17/
?


> if RUBY_VERSION < "1.9"
>         when nil: total_mem *= (1<<0)
>         when 'kB': total_mem *= (1<<10)
>         when 'MB': total_mem *= (1<<20)
>         when 'GB': total_mem *= (1<<30)
>         when 'TB': total_mem *= (1<<40)
> else
>         when nil then total_mem *= (1<<0)
>         when 'kB' then total_mem *= (1<<10)
>         when 'MB' then total_mem *= (1<<20)
>         when 'GB' then total_mem *= (1<<30)
>         when 'TB' then total_mem *= (1<<40)
> end


Why this when:
   when nil then total_mem *= (1<<0)
works in ruby-1.8 as well?

> err: /Stage[main]/Apache2/Exec[reload-apache2]: Failed to call refresh: Could not find command '/etc/init.d/httpd'

We have even in code:
modules/certs/templates/rhsm-katello-reconfigure.erb: 
/etc/init.d/goferd restart >/dev/null 2&>1

You should never call /etc/init.d/foo directly. Always
  service foo start/stop/restart
Command service ensure you have correct environment and set cwd to /. 
And works with both systemV and systemD.


-- 
Miroslav Suchy
Red Hat Systems Management Engineering




More information about the katello-devel mailing list