We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language: Puppet
Tried to represent most of the language here, also with possible SymbolKind's:
# Resource declaration # SymbolKind: Object (19) file { '/etc/ssh/sshd_config': ensure => file, owner => 'root', group => 'root', mode => '0600', } # Variable assignment # SymbolKind: Variable (13) $package_name = 'httpd' # Conditional statement # SymbolKind: Function (12) if $facts['os']['family'] == 'RedHat' { $apache = 'httpd' } else { $apache = 'apache2' } # Case statement # SymbolKind: Function (12) case $facts['os']['name'] { 'RedHat', 'CentOS': { $ssh_service = 'sshd' } 'Debian', 'Ubuntu': { $ssh_service = 'ssh' } default: { fail('Unsupported operating system') } } # Resource defaults # SymbolKind: Object (19) File { owner => 'root', group => 'root', mode => '0644', } # Class definition # SymbolKind: Class (5) class ssh_server { package { 'openssh-server': ensure => installed, } service { 'sshd': ensure => running, enable => true, } } # Defined resource type # SymbolKind: Method (6) define virtual_host($port, $document_root) { file { "/etc/apache2/sites-available/${name}.conf": ensure => file, content => template('apache/vhost.erb'), } } # Function # SymbolKind: Function (12) $timestamp = generate('/bin/date', '+%Y-%m-%d %H:%M:%S') # Lambda # SymbolKind: Function (12) $userlist = ['alice', 'bob', 'carol'] $users_with_home = $userlist.map |$user| { "/home/${user}" } # Node definition # SymbolKind: Class (5) node 'webserver.example.com' { include ssh_server include apache }
Thanks!
The text was updated successfully, but these errors were encountered:
stevearc
No branches or pull requests
Language: Puppet
Tried to represent most of the language here, also with possible SymbolKind's:
Thanks!
The text was updated successfully, but these errors were encountered: