https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • y

    Yorokobi

    10/21/2022, 2:34 PM
    Same perms as every other directory ... I'll try again after setting the SELinux context correctly.
  • y

    Yorokobi

    10/21/2022, 2:35 PM
    Same perms as every other directory ... I'll try again after setting the SELinux context correctly.
  • l

    Lumiere

    10/21/2022, 2:37 PM
    we had to set the perms to 1770 and owned by puppet
  • y

    Yorokobi

    10/21/2022, 2:39 PM
    chcon
    and ownership from root to puppet -> πŸ‘
    🦜 1
  • y

    Yorokobi

    10/21/2022, 2:40 PM
    Thanks much.
    πŸ‘ 1
  • s

    Slackbot

    10/21/2022, 3:57 PM
    This message was deleted.
    v
    r
    +3
    • 6
    • 14
  • b

    bastelfreak

    10/21/2022, 4:02 PM
    check the apache class, it probably can take a hash and iterate over apache::vhost
  • v

    vchepkov

    10/21/2022, 5:50 PM
    not unless someone adds this functionality in the module
  • w

    William Myers

    10/21/2022, 5:52 PM
    message has been deleted
  • w

    William Myers

    10/21/2022, 5:52 PM
    message has been deleted
  • w

    William Myers

    10/21/2022, 5:54 PM
    message has been deleted
  • s

    Slackbot

    10/21/2022, 8:26 PM
    This message was deleted.
    c
    v
    • 3
    • 11
  • w

    William Myers

    10/21/2022, 8:27 PM
    Could someone help me understand the bracket encasing in this example?
    Copy code
    # /etc/puppetlabs/code/environments/production/site/profile/manifests/webserver/example.pp
    class profile::webserver::example (
      String $content      = "Hello from vhost\\n",
      Array[String] $ports = ['80']
      Array[String] $ips   = ['127.0.0.1','127.0.0.2'],
    ) 
    {
      class { 'apache':
        default_vhost => false,
      }
    {
      apache::vhost { '<http://example.com|example.com>':
        port     => $ports,
        ip       => $ips,
        ip_based => true,
        docroot  => '/var/www/html',
      }
      file { '/var/www/html/index.html':
        ensure  => file,
        content => $content,
      }
     firewall { '100 allow http and https access':
        dport  => $ports,
        proto  => tcp,
        action => accept
      }
    }
  • v

    vchepkov

    10/21/2022, 8:27 PM
    which part?
  • v

    vchepkov

    10/21/2022, 8:28 PM
    there seem to be mismatch of
    {}
    in your code
  • w

    William Myers

    10/21/2022, 8:28 PM
    Trying to understand why things are positioned in a specific way, for example theres an open-ended curly bracket for the line class { 'apache':
  • w

    William Myers

    10/21/2022, 8:28 PM
    That's not my code
  • w

    William Myers

    10/21/2022, 8:28 PM
    https://puppet.com/docs/pe/2021.1/configure_roles_and_profiles_apache_getting_started.html
  • w

    William Myers

    10/21/2022, 8:28 PM
    I'm a bit confused about the {} myself
  • v

    vchepkov

    10/21/2022, 8:28 PM
    well, that code has errors
  • w

    William Myers

    10/21/2022, 8:28 PM
    What Should it look like?
  • w

    William Myers

    10/21/2022, 8:28 PM
    is the bracket before apache::vhost an error?
  • v

    vchepkov

    10/21/2022, 8:29 PM
    that
    {
    after apache is extra
  • w

    William Myers

    10/21/2022, 8:29 PM
    Copy code
    {   <---------------- this?
      apache::vhost { '<http://example.com|example.com>':
  • v

    vchepkov

    10/21/2022, 8:29 PM
    yep
  • w

    William Myers

    10/21/2022, 8:29 PM
    Ok, that's what was confusing me and had me scratching my head as I was trying to adopt the example.
  • w

    William Myers

    10/21/2022, 8:29 PM
    Ok, that's what was confusing me and had me scratching my head as I was trying to adopt the example.
  • v

    vchepkov

    10/21/2022, 8:29 PM
    do as I say not as I do :)
  • w

    William Myers

    10/21/2022, 8:30 PM
    is the indentation for firewall correct?
  • s

    Slackbot

    10/21/2022, 8:30 PM
    This message was deleted.
    b
    b
    • 3
    • 11
1...210211212...428Latest