1 / 5

Puppet at Oxford

Puppet at Oxford. Kashif Mohammad. /etc/puppet/manifests ├── local_cluster.pp ├── nodes │ ├── grid_service_nodes │ │ ├── t2ce02.pp │ │ └── t2ce07.pp │ ├── grid_worker_test │ │ ├── t2wn41.pp │ │ ├── t2wn43.pp │ │ └── t2wn47.pp │ └── misc

adonis
Download Presentation

Puppet at Oxford

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Puppet at Oxford Kashif Mohammad

  2. /etc/puppet/manifests ├── local_cluster.pp ├── nodes │ ├── grid_service_nodes │ │ ├── t2ce02.pp │ │ └── t2ce07.pp │ ├── grid_worker_test │ │ ├── t2wn41.pp │ │ ├── t2wn43.pp │ │ └── t2wn47.pp │ └── misc │ ├── cblrtest.pp │ └── t2ui03.pp └── site.pp Site.pp import 'nodes/grid_service_nodes/*.pp' import 'nodes/grid_worker_test/*.pp' import 'nodes/misc/*.pp' import 'local_cluster.pp' node default { include common include ssh::ssh_authorized_keys } node t2wn47 { class { 'role::grid::grid_wn_test' : } }

  3. Grid.pp class profile::ssh::grid { include ssh::ssh_authorized_keys class {'ssh' : sshd_parameters => ['PasswordAuthentication no', 'PermitEmptyPasswords yes',] } ssh::hosts_allow {'sshd' : sshd => 'sshd :', sshd_range => '163.1.5. 163.1.136.', nrpe => 'nrpe :', nrpe_range => '163.1.5.', } ssh::hosts_deny {'sshd' : sshd => 'sshd :', sshd_range => 'ALL', nrpe => 'nrpe :', nrpe_range => 'ALL', } } Ssh module ├── files │ └── authorized_keys ├── manifests │ ├── hosts_allow.pp │ ├── hosts_deny.pp │ ├── init.pp │ ├── ssh_authorized_keys.pp │ └── sshd_config.pp └── templates ├── hosts.allow.erb └── hosts.deny.erb Profile ├── files └── manifests ├── init.pp └── ssh ├── default.pp └── grid.pp

  4. role/ ├── files └── manifests ├── cloud ├── grid │ └── grid_wn_test.pp ├── init.pp └── pp class role::grid::grid_wn_test { include profile::ssh:grid class {'emi_repo' : repo => 'emi3' } class {'ssh::ssh_authorized_keys' : } class {'yum' : auto_update => 'false', security_update => 'true', ca_update => 'true' } class {'ganglia' : ganglia_server => 't2manage02.physics.ox.ac.uk', cluster_type => 'workers' } class {'grid_common' : } class {'yaim_conf' : } class {'yaim_conf::wn_site_info' : cluster => 'test', } class {'grid_worker' : torque_server => 't2ce02', } class {'grid_worker::software_area' : } class {'cvmfs' : } }

  5. Augeas define sshd_config { augeas { $name: context => "/files/etc/ssh/sshd_config", changes => "set $name ", } } class {'ssh' : sshd_parameters => ['PasswordAuthentication no', 'PermitEmptyPasswords yes',] } class ssh ($sshd_parameters) { $package_list = [ 'openssh', 'openssh-clients', 'openssh-server' ] package { $package_list: ensure => installed, } sshd_config {$sshd_parameters: }

More Related