drush_nagios
example.aliases.drushrc.php
Go to the documentation of this file.
1 <?php
2 
3 /**
4  * @file
5  * Drush site alias configuration with command specific options
6  * for drush_nagios (https://www.drupal.org/project/drush_nagios)
7  * used via NRPE or via ssh.
8  *
9  * Drush will search for aliases in any of these files using
10  * the alias search path. The following locations are examined
11  * for alias files:
12  *
13  * - In any path set in $options['alias-path'] in drushrc.php,
14  * - or (equivalently) any path passed in via --alias-path=...
15  * - on the command line.
16  * - If 'alias-path' is not set, then in one of the default locations:
17  * - /etc/drush
18  * - In the drush installation folder
19  * - Inside the 'aliases' folder in the drush installation folder
20  * - $HOME/.drush
21  * - Inside the sites folder of any bootstrapped Drupal site,
22  * or any local Drupal site indicated by an alias used as
23  * a parameter to a command
24  *
25  * @see http://api.drush.org/api/drush/examples%21example.aliases.drushrc.php/5.x
26  * for example of valid statements for an alias file.
27  */
28 
29 /**
30  * Settings for connecting a (remote) site on another host *through ssh*.
31  */
32 $aliases['remote'] = array(
33  'remote-user' => 'user',
34  'remote-host' => 'server.example.com',
35  'remote-os' => 'Linux',
36  'ssh-options' => '-p 1337 -i /home/user/.ssh/identiy',
37 );
38 
39 /**
40  * Site alias 'dev' with command specific options for drush_nagios
41  *
42  * - Parent setting
43  * @code $aliases['dev']['parent'] = '@remote';@endcode
44  * - If monitoring should be done *through ssh* you will need this option
45  * in combination with above declared #$aliases['remote'].
46  * - If monitoring should be done through NRPE, you will not need this line and
47  * above declared #$aliases['remote']`.
48  * - Specific options for check-updates command
49  * - ignore
50  * @code $aliases['dev']['command-specific']['check-updates']['ignore'] = 'project1,project2,projectN';@endcode
51  * - Comma seperated list of projects which should be ignored, useful for patched, modified modules etc.
52  * - ignore-locked
53  * @code $aliases['dev']['command-specific']['check-updates']['ingnore-locked'] = 1';@endcode
54  * - Ignore projects which are locked by `drush pm-update --lock`.
55  * - Specific options for check-drupal-requirements command
56  * - ignore
57  * @code $aliases['dev']['command-specific']['check-drupal-requirements']['ignore'] = 'facility1,facility2,facilityN';@endcode
58  * - Facility or comma seperated list of facilities which should be ignored,
59  */
60 $aliases['dev'] = array(
61  'uri' => 'dev.example.com',
62  'root' => '/path/to/drupal/root',
63  'parent' => '@remote',
64 
65  'command-specific' => array (
66  'check-updates' => array(
67  'ignore' => 'project1,project2,projectN',
68  'ignore-locked' => 1,
69  ),
70  'check-drupal-requirements' => array(
71  'ignore' => 'facility1,facility2,facilityN',
72  )
73  ),
74 );
$aliases['remote']