This file is indexed.

/usr/share/pcsd/views/_dialogs.erb is in pcs 0.9.164-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<div id="dialog_login" style="display:none;">
  <form id="login_form">
    <div>Your session has expired. Log in again, please.</div>
    <div id="login_form_denied" style="color:red; display:none;">
      Bad username or password
    </div>
    <table>
      <tr>
        <td><label for="login_form_username">Username:</label></td>
        <td><input type="text" id="login_form_username" name="username"></td>
      </tr>
      <tr>
        <td><label for="login_form_password">Password:</label></td>
        <td><input type="password" id="login_form_password" name="password"></td>
      </tr>
    </table>
  </form>
</div>

<div id="auth_nodes" style="display:none;">
  <form id="auth_nodes_form">
    Enter password for user 'hacluster' to authenticate nodes.<br>
    Nodes to authenticate:
    <table class="err_msg_table" style="width: 100%">
      <tr><td align=center style="color: red" colspan=2"><span id="auth_failed_error_msg" style="display:none;">Authentication on some nodes failed.</span></td></tr>
    </table>
    <table id="auth_nodes_list">
    </table>
    <div id="same_pass"><label><input type="checkbox" name="all" onchange="if ($(this).is(':checked')) {$('#auth_nodes_list').find('input:password').each(function(){$(this).hide()}); $('#pass_for_all').show();} else {$('#auth_nodes_list').find('input:password').each(function(){$(this).show()}); $('#pass_for_all').hide();}"> Use same password for all nodes:</label>
      <input type="password" name="pass-all" id="pass_for_all" style="display: none;"></div>
  </form>
</div>

<div id="dialog_verify_remove_clusters" style="display: none;">
  <p style="font-size:12px;">Are you sure you want to remove the following cluster(s) from the GUI? (This only removes the cluster from the GUI, it does not stop the cluster from running.)</p>
  <span class="name_list"></span>
</div>

<div id="dialog_verify_remove_nodes" style="display:none;">
  <p style="font-size:12px;">Are you sure you want to remove the following node(s)?</p>
  <span class="name_list"></span>
  {{#if Pcs.is_cman_with_udpu_transport}}
    <p style="color: orange">This is a CMAN cluster with UDPU transport, cluster restart is required to apply node removal.</p>
  {{/if}}
</div>

<div id="dialog_verify_remove_resources" style="display: none;">
  <p style="font-size:12px;">Are you sure you want to remove the following resource(s)?</p>
  <span class="name_list"></span>
  <input type="checkbox" name="force">
  Enforce removal (Remove the resources without stopping them first.)
</div>

<div id="dialog_verify_remove_acl_roles" style="display:none;">
  <p style="font-size:12px;">Are you sure you want to remove the following ACL role(s)?</p>
  <span class="name_list"></span>
</div>

<div id="enable_sbd_dialog" style="display:none;">
  <form id="enable_sbd_form">
    <table>
      <tr>
        <td class="darkdatatable_header">
          Specify watchdog devices for nodes:
        </td>
      </tr>
      <tr>
        <td>
          <table id="watchdog_table">
          </table>
        </td>
      </tr>
    </table>
    <table style="margin-top: 20px;">
      <tr>
        <td class="darkdatatable_header">
          SBD options:
        </td>
      </tr>
      <tr>
        <td>
          <table id="sbd_options">
            <tr>
              <td>SBD_DELAY_START</td>
              <td>
                <select name="config[SBD_DELAY_START]">
                  <option value="" selected>(default)</option>
                  <option value="yes">yes</option>
                  <option value="no">no</option>
                </select>
              </td>
            </tr>
            <tr>
              <td>SBD_STARTMODE</td>
              <td>
                <select name="config[SBD_STARTMODE]">
                  <option value="" selected>(default)</option>
                  <option value="clean">clean</option>
                  <option value="always">always</option>
                </select>
              </td>
            </tr>
            <tr>
              <td>SBD_WATCHDOG_TIMEOUT</td>
              <td>
                <input
                    type="text"
                    name="config[SBD_WATCHDOG_TIMEOUT]"
                    placeholder="5"
                />
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <table>
      <tr>
        <td>
          <label for="ignore_offline_nodes_enable_sbd">
            ignore offline nodes
          </label>
        </td>
        <td>
          <input
              id="ignore_offline_nodes_enable_sbd"
              type="checkbox"
              name="ignore_offline_nodes"
          />
        </td>
      </tr>
    </table>
  </form>
</div>

<div id="disable_sbd_dialog" style="display:none;">
  <form id="disable_sbd_form">
    Are you sure you want to disable SBD?
    <table>
      <tr>
        <td>
          <label for="ignore_offline_nodes_disable_sbd">
            ignore offline nodes
          </label>
        </td>
        <td>
          <input
              id="ignore_offline_nodes_disable_sbd"
              type="checkbox"
              name="ignore_offline_nodes"
          />
        </td>
      </tr>
    </table>
  </form>
</div>

<div id="sbd_status_dialog" style="display:none;">
  <table>
    <tr>
      <td class="darkdatatable_header">SBD service status</td>
    </tr>
    <tr>
      <td>
        <table class="darkdatatable">
          <tr>
            <th>NODE</th>
            <th>INSTALLED</th>
            <th>ENABLED</th>
            <th>RUNNING</th>
          </tr>
          {{#each node in Pcs.nodesController}}
          <tr>
            <td>{{node.name}}</td>
            <td>{{bool-to-icon node.is_sbd_installed}}</td>
            <td>{{bool-to-icon node.is_sbd_enabled}}</td>
            <td>{{bool-to-icon node.is_sbd_running}}</td>
          </tr>
          {{/each}}
        </table>
      </td>
    </tr>
  </table>
  {{#if Pcs.is_sbd_enabled_or_running}}
  <table style="margin-top: 20px;">
    <tr>
      <td class="darkdatatable_header">SBD configuration</td>
    </tr>
    <tr>
      <td>
        {{{Pcs.sbd_config_table}}}
      </td>
    </tr>
  </table>
  <table style="margin-top: 20px;">
    <tr>
      <td class="darkdatatable_header">SBD watchdogs</td>
    </tr>
    <tr>
      <td>
        <table class="darkdatatable">
          <tr>
            <th>NODE</th>
            <th>WATCHDOG</th>
          </tr>
          {{#each node in Pcs.nodesController}}
          <tr>
            <td>{{node.name}}</td>
            <td>{{node.sbd_watchdog}}</td>
          </tr>
          {{/each}}
        </table>
      </td>
    </tr>
  </table>
  {{/if}}
</div>

<div id="add_group" style="display: none;">
  <form method=POST onkeypress="if (event.keyCode == 13) {$(this).parent().parent().find('.ui-dialog-buttonpane button:eq(1)').trigger('click');return false;} " action="/resource_group_add">
    <table>
      <tr>
        <td>Group Name:</td>
        <td>
          <input name="resource_group" type="text" />
        </td>
      </tr>
      <tr>
        <td style="vertical-align: top;">Change order of resources:</td>
        <td>
          <table id="new_group_resource_list" class="sortable-table">
            <tbody></tbody>
          </table>
        </td>
      </tr>
    </table>
  </form>
</div>