Настройка puppet

Тема в разделе "Администрирование серверов", создана пользователем gamera, 29 окт 2015.

Модераторы: mefish, stooper
  1. gamera

    gamera Постоялец

    Регистр.:
    15 мар 2010
    Сообщения:
    117
    Симпатии:
    2
    Всем привет, кто может помочь, не работает puppet, Вот /etc/puppet/puppet.conf:
    Код:
    [main]
    logdir=/var/log/puppet
    vardir=/var/lib/puppet
    ssldir=/var/lib/puppet/ssl
    rundir=/var/run/puppet
    factpath=$vardir/lib/facter
    #templatedir=$confdir/templates
    
    #[master]
    ## These are needed when the puppetmaster is run by passenger
    ## and can safely be removed if webrick is used.
    #ssl_client_header = SSL_CLIENT_S_DN
    #ssl_client_verify_header = SSL_CLIENT_VERIFY
    
    [agent]
    server = puppetmaster.example.com
    Вот файл /etc/hosts:
    Код:
    127.0.0.1 localhost
    172.31.3.202 puppetmaster.example.com. puppetmaster. puppet.
    
    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    Вот ошибка:
    Код:
    root@ip-172-31-34-83:/tmp# puppet agent --verbose --test
    Warning: Unable to fetch my node definition, but the agent run will continue:
    Warning: getaddrinfo: Name or service not known
    Info: Retrieving pluginfacts
    Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
    Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppetmaster.example.com/pluginfacts: getaddrinfo: Name or service not known
    Info: Retrieving plugin
    Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
    Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppetmaster.example.com/plugins: getaddrinfo: Name or service not known
    Error: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
    Warning: Not using cache on failed catalog
    Error: Could not retrieve catalog; skipping run
    Error: Could not send report: getaddrinfo: Name or service not known
    
     
  2. Ener

    Ener Создатель

    Регистр.:
    29 окт 2015
    Сообщения:
    32
    Симпатии:
    4
    добавь свой хостнейм в /etc/hosts под внешним ip, чтобы он ресолвился
     
  3. gamera

    gamera Постоялец

    Регистр.:
    15 мар 2010
    Сообщения:
    117
    Симпатии:
    2
    В том то и дело то он резолвиться, но ошибка так и осталась