Yes this also happens when I only install foreman with 'apt-get install
foreman'
Your assumptions are correct, stable foreman repo and official debian repo
as well.
apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://apt.puppetlabs.com/ squeeze/main amd64 Packages
release o=Puppetlabs,n=squeeze,l=Puppetlabs,c=main
origin apt.puppetlabs.com
500 http://deb.theforeman.org/ squeeze/stable amd64 Packages
release o=TheForeman,a=squeeze,n=squeeze,l=TheForeman,c=stable
origin deb.theforeman.org
500 http://security.debian.org/ squeeze/updates/non-free amd64 Packages
release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian-Security,c=non-free
origin security.debian.org
500 http://security.debian.org/ squeeze/updates/contrib amd64 Packages
release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian-Security,c=contrib
origin security.debian.org
500 http://security.debian.org/ squeeze/updates/main amd64 Packages
release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian-Security,c=main
origin security.debian.org
500 http://ftp.ch.debian.org/debian/ squeeze/main amd64 Packages
release v=6.0.7,o=Debian,a=stable,n=squeeze,l=Debian,c=main
origin ftp.ch.debian.org
Will dig into this a bit more and I'll keep you posted.
Sandro
···
On Thursday, April 25, 2013 4:26:32 PM UTC+2, Sandro Roth wrote:
>
> Hi there
>
> Trying to run the foreman-installer on a plain debian squeeze box, I get
> the following error
>
>
> # ruby1.8 /usr/share/foreman-installer/generate_answers.rb
> [...]
>
> Ready to start? (y/n)
> y
>
> Do you want to use the default all-in-one setup?
> [...] (y/n)
> y
>
> Do you want to run Puppet now with these settings? (y/n)
> y
> wrong number of arguments (2 for 1) at
> /usr/share/foreman-installer/foreman_installer/manifests/yaml_to_class.pp:23
> on node nefarian.lan.sarnox.ch
>
> Okay, you're all set! Check
> /usr/share/foreman-installer/foreman_installer/answers.yaml for your
> config.
>
> You can apply it in the future as root with:
> echo include foreman_installer | puppet apply --modulepath
> /usr/share/foreman-installer -v
>
>
> I'm wondering, do you suggest to use puppet provided by squeeze repos
> (2.6.2), or use backported packages (2.7.x) or use puppetlabs repos with
> version 3.x?
> Are all the versions supported with foreman?
>
> Also debian wheezy will be release soon, are you planning to support this
> as well or some time later in the future?
>
>
> Thanks
> Sandro
>
I was having a look at the foreman package and then tried to install it
with DEBUG=1.
Seems to be an issue with the json gem
Installing json (1.7.7) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load – mkmf (LoadError)
from extconf.rb:1
Gem files will remain installed in
/usr/share/foreman/vendor/ruby/1.8/gems/json-1.7.7 for inspection.
Results logged to
/usr/share/foreman/vendor/ruby/1.8/gems/json-1.7.7/ext/json/ext/generator/gem_make.out
So then I googled a bit and found some posts saying that you should install build-essential
libopenssl-ruby ruby1.8-dev because it might need to compile some C code.
I did just that and now the installation of the foreman package works
fine… but now I'm getting an error from foreman-sqlite3
Setting up foreman-sqlite3 (1.1.1+debian1) …
/usr/lib/ruby/vendor_ruby/1.8/rubygems/package/tar_input.rb:57:in
`initialize': not in gzip format (Zlib::GzipFile::Error)
But that's a problem for another day…
Cheers
Sandro
···
On Thursday, April 25, 2013 7:48:34 PM UTC+2, Sandro Roth wrote:
>
> Yes this also happens when I only install foreman with 'apt-get install
> foreman'
>
> Your assumptions are correct, stable foreman repo and official debian repo
> as well.
>
> # apt-cache policy
> Package files:
> 100 /var/lib/dpkg/status
> release a=now
> 500 http://apt.puppetlabs.com/ squeeze/main amd64 Packages
> release o=Puppetlabs,n=squeeze,l=Puppetlabs,c=main
> origin apt.puppetlabs.com
> 500 http://deb.theforeman.org/ squeeze/stable amd64 Packages
> release o=TheForeman,a=squeeze,n=squeeze,l=TheForeman,c=stable
> origin deb.theforeman.org
> 500 http://security.debian.org/ squeeze/updates/non-free amd64 Packages
> release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian-Security,c=non-free
> origin security.debian.org
> 500 http://security.debian.org/ squeeze/updates/contrib amd64 Packages
> release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian-Security,c=contrib
> origin security.debian.org
> 500 http://security.debian.org/ squeeze/updates/main amd64 Packages
> release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian-Security,c=main
> origin security.debian.org
> 500 http://ftp.ch.debian.org/debian/ squeeze/main amd64 Packages
> release v=6.0.7,o=Debian,a=stable,n=squeeze,l=Debian,c=main
> origin ftp.ch.debian.org
>
> Will dig into this a bit more and I'll keep you posted.
>
>
> Sandro
>
>
> On Thursday, April 25, 2013 4:26:32 PM UTC+2, Sandro Roth wrote:
>>
>> Hi there
>>
>> Trying to run the foreman-installer on a plain debian squeeze box, I get
>> the following error
>>
>>
>> # ruby1.8 /usr/share/foreman-installer/generate_answers.rb
>> [...]
>>
>> Ready to start? (y/n)
>> y
>>
>> Do you want to use the default all-in-one setup?
>> [...] (y/n)
>> y
>>
>> Do you want to run Puppet now with these settings? (y/n)
>> y
>> wrong number of arguments (2 for 1) at
>> /usr/share/foreman-installer/foreman_installer/manifests/yaml_to_class.pp:23
>> on node nefarian.lan.sarnox.ch
>>
>> Okay, you're all set! Check
>> /usr/share/foreman-installer/foreman_installer/answers.yaml for your
>> config.
>>
>> You can apply it in the future as root with:
>> echo include foreman_installer | puppet apply --modulepath
>> /usr/share/foreman-installer -v
>>
>>
>> I'm wondering, do you suggest to use puppet provided by squeeze repos
>> (2.6.2), or use backported packages (2.7.x) or use puppetlabs repos with
>> version 3.x?
>> Are all the versions supported with foreman?
>>
>> Also debian wheezy will be release soon, are you planning to support this
>> as well or some time later in the future?
>>
>>
>> Thanks
>> Sandro
>>
>
Well, I was getting tired of tracking down one problem after the other so I
just reinstalled my test box (which I've done many times before).
But this time I did it by hand, going through the installer manually, and
voila, the foreman installer and all the packages install just fine…
I have absolutely no idea what is wrong with my preseed config… anyway
I'll be using foreman in the future to provision all my boxes 
Thanks for your help tough!
Cheers
Sandro
···
On Thursday, April 25, 2013 9:35:44 PM UTC+2, Sandro Roth wrote:
>
> I was having a look at the foreman package and then tried to install it
> with DEBUG=1.
> Seems to be an issue with the json gem
>
> Installing json (1.7.7) with native extensions
> Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
> extension.
>
> /usr/bin/ruby1.8 extconf.rb
> extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
> from extconf.rb:1
>
> Gem files will remain installed in
> /usr/share/foreman/vendor/ruby/1.8/gems/json-1.7.7 for inspection.
> Results logged to
> /usr/share/foreman/vendor/ruby/1.8/gems/json-1.7.7/ext/json/ext/generator/gem_make.out
>
>
> So then I googled a bit and found some posts saying that you should
> install build-essential libopenssl-ruby ruby1.8-dev because it might need
> to compile some C code.
>
> I did just that and now the installation of the foreman package works
> fine.. but now I'm getting an error from foreman-sqlite3
>
> Setting up foreman-sqlite3 (1.1.1+debian1) ...
> /usr/lib/ruby/vendor_ruby/1.8/rubygems/package/tar_input.rb:57:in
> `initialize': not in gzip format (Zlib::GzipFile::Error)
>
> But that's a problem for another day..
>
> Cheers
> Sandro
>
>
> On Thursday, April 25, 2013 7:48:34 PM UTC+2, Sandro Roth wrote:
>>
>> Yes this also happens when I only install foreman with 'apt-get install
>> foreman'
>>
>> Your assumptions are correct, stable foreman repo and official debian
>> repo as well.
>>
>> # apt-cache policy
>> Package files:
>> 100 /var/lib/dpkg/status
>> release a=now
>> 500 http://apt.puppetlabs.com/ squeeze/main amd64 Packages
>> release o=Puppetlabs,n=squeeze,l=Puppetlabs,c=main
>> origin apt.puppetlabs.com
>> 500 http://deb.theforeman.org/ squeeze/stable amd64 Packages
>> release o=TheForeman,a=squeeze,n=squeeze,l=TheForeman,c=stable
>> origin deb.theforeman.org
>> 500 http://security.debian.org/ squeeze/updates/non-free amd64 Packages
>> release
>> v=6.0,o=Debian,a=stable,n=squeeze,l=Debian-Security,c=non-free
>> origin security.debian.org
>> 500 http://security.debian.org/ squeeze/updates/contrib amd64 Packages
>> release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian-Security,c=contrib
>> origin security.debian.org
>> 500 http://security.debian.org/ squeeze/updates/main amd64 Packages
>> release v=6.0,o=Debian,a=stable,n=squeeze,l=Debian-Security,c=main
>> origin security.debian.org
>> 500 http://ftp.ch.debian.org/debian/ squeeze/main amd64 Packages
>> release v=6.0.7,o=Debian,a=stable,n=squeeze,l=Debian,c=main
>> origin ftp.ch.debian.org
>>
>> Will dig into this a bit more and I'll keep you posted.
>>
>>
>> Sandro
>>
>>
>> On Thursday, April 25, 2013 4:26:32 PM UTC+2, Sandro Roth wrote:
>>>
>>> Hi there
>>>
>>> Trying to run the foreman-installer on a plain debian squeeze box, I get
>>> the following error
>>>
>>>
>>> # ruby1.8 /usr/share/foreman-installer/generate_answers.rb
>>> [...]
>>>
>>> Ready to start? (y/n)
>>> y
>>>
>>> Do you want to use the default all-in-one setup?
>>> [...] (y/n)
>>> y
>>>
>>> Do you want to run Puppet now with these settings? (y/n)
>>> y
>>> wrong number of arguments (2 for 1) at
>>> /usr/share/foreman-installer/foreman_installer/manifests/yaml_to_class.pp:23
>>> on node nefarian.lan.sarnox.ch
>>>
>>> Okay, you're all set! Check
>>> /usr/share/foreman-installer/foreman_installer/answers.yaml for your
>>> config.
>>>
>>> You can apply it in the future as root with:
>>> echo include foreman_installer | puppet apply --modulepath
>>> /usr/share/foreman-installer -v
>>>
>>>
>>> I'm wondering, do you suggest to use puppet provided by squeeze repos
>>> (2.6.2), or use backported packages (2.7.x) or use puppetlabs repos with
>>> version 3.x?
>>> Are all the versions supported with foreman?
>>>
>>> Also debian wheezy will be release soon, are you planning to support
>>> this as well or some time later in the future?
>>>
>>>
>>> Thanks
>>> Sandro
>>>
>>