[Puppet Users] installing package giving error

kampy
Fri, 18 Oct 2013 07:04:02 -0000

Hi all,

I am new to puppet. i just started exploring. when i am trying install a
package it is giving the below error

*$ puppet apply nmap.pp
err: /Stage[main]/Nmap/Package[nmap]/ensure: change from purged to present
failed: Execution of ''/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install nmap'' returned 100: Reading
package
lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  nmap
0 upgraded, 1 newly installed, 0 to remove and 159 not upgraded.
Need to get 1643 kB of archives.
After this operation, 6913 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  nmap
E: There are problems and -y was used without --force-yes

notice: Finished catalog run in 1.04 seconds*
 script is as below :

class nmap{
        package { ''nmap'':
                ensure => installed,
        }
}
include nmap

Please let me know do i need to add any other options here or give me a
correct tutorial link where i can find easily these things.

Regards