Puppet for Junos

  • 1.  Cannot install module jeremyschulman-netdev. Possible proxy problem?

    Posted 02-15-2013 13:39

    I have puppet installed on a CentOS host, but cannot seem to retrieve the netdev module.   

    I thought there was an issue with the proxy, but all my other apps work fine (gem, yum, links) thru the proxy.

     

    Here's the symptom:

     

    [root@gepetto ~]# echo $http_proxy
    http://10.13.110.226:3128
    
    [root@gepetto ~]# grep proxy /etc/puppet/puppet.conf
        http_proxy_host = 10.13.110.226
        http_proxy_port = 3128
    
    [root@gepetto ~]# puppet module search jeremyschulman/netdev
    Notice: Searching https://forge.puppetlabs.com ...
    NAME                   DESCRIPTION                                                                 AUTHOR           KEYWORDS
    jeremyschulman-netdev  Vendor agnostic networking device resource types                            @jeremyschulman  networking
    
    [root@gepetto ~]# puppet module install jeremyschulman-netdev
    Notice: Preparing to install into /etc/puppet/modules ...
    Notice: Downloading from https://forge.puppetlabs.com ...
    Error: Address family not supported by protocol - socket(2)
    Error: Try 'puppet help module install' for usage
    [root@gepetto ~]#

     

    Any ideas ?  This is my first exposure to puppet, so I'm a little helpless here.

     

    /doug



  • 2.  RE: Cannot install module jeremyschulman-netdev. Possible proxy problem?

    Posted 02-15-2013 13:43

    Hi Doug,

     

    Great to see you working with Puppet.  When you install Puppet modules, you need to use the hyphen (-) and not the slash (/) between the username and the module name:

     

    [root@server ~]# puppet module install jeremyschulman-netdev

     

    Cheers,

    -- Jeremy



  • 3.  RE: Cannot install module jeremyschulman-netdev. Possible proxy problem?
    Best Answer

    Posted 02-15-2013 14:08

    Hi Doug,

     

    In addition to keeping with the hypen, I found the following report on HTTPS proxy:

     

    http://projects.puppetlabs.com/issues/15453

     

    And you need to add the https_proxy variable

     

    Hope this helps!


    Cheers,

    -- Jeremy



  • 4.  RE: Cannot install module jeremyschulman-netdev. Possible proxy problem?

    Posted 02-15-2013 14:12

    Thanks!

    That was it.   I had my http_proxy env var set, but none for https_proxy.  

     

    <*doh*>

     

    Applied *both* in /etc/profile and it worked like a champ.

    Onward!

     

    /doug