Skip to content

Commit e8bb413

Browse files
committed
Sed intendation to indentation
1 parent c462d8f commit e8bb413

File tree

3 files changed

+44
-44
lines changed

3 files changed

+44
-44
lines changed

dhcpd/files/dhcpd.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ failover peer "{{ failover_peer }}" {
193193
}
194194
{%- endfor %}
195195

196-
{%- set intendation='' %}
196+
{%- set indentation='' %}
197197
{%- for key, config in salt['pillar.get']('dhcpd:keys', {}).items() %}
198198
key {{ key }} {
199199
{%- if 'algorithm' in config %}
@@ -230,7 +230,7 @@ zone {{ zone }} {
230230
{%- endfor %}
231231
{%- endif %}
232232
shared-network {{ shared_network }} {
233-
{%- set intendation=' ' %}
233+
{%- set indentation=' ' %}
234234
{%- for subnet, config in salt['pillar.get'](
235235
'dhcpd:shared_networks:{0}:subnets'.format(shared_network), {}).items() %}
236236
{%- include 'dhcpd/files/subnet.jinja' with context %}

dhcpd/files/host.jinja

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
{%- if 'comment' in config %}
22
{%- for line in config.comment.splitlines() %}
3-
{{ intendation }}# {{ line }}
3+
{{ indentation }}# {{ line }}
44
{%- endfor %}
55
{%- endif %}
6-
{{ intendation }}host {{ host }} {
6+
{{ indentation }}host {{ host }} {
77
{%- if 'allow' in config %}
88
{%- if config.allow is iterable and config.allow is not string %}
99
{%- for item in config.allow %}
10-
{{ intendation }} allow {{ item }};
10+
{{ indentation }} allow {{ item }};
1111
{%- endfor %}
1212
{%- else %}
13-
{{ intendation }} allow {{ config.allow }};
13+
{{ indentation }} allow {{ config.allow }};
1414
{%- endif %}
1515
{%- endif %}
1616
{%- if 'deny' in config %}
1717
{%- if config.deny is iterable and config.deny is not string %}
1818
{%- for item in config.deny %}
19-
{{ intendation }} deny {{ item }};
19+
{{ indentation }} deny {{ item }};
2020
{%- endfor %}
2121
{%- else %}
22-
{{ intendation }} deny {{ config.deny }};
22+
{{ indentation }} deny {{ config.deny }};
2323
{%- endif %}
2424
{%- endif %}
2525
{%- if 'hardware' in config %}
26-
{{ intendation }} hardware {{ config.hardware }};
26+
{{ indentation }} hardware {{ config.hardware }};
2727
{%- endif %}
2828
{%- if 'fixed_address' in config %}
29-
{{ intendation }} fixed-address {{ config.fixed_address }};
29+
{{ indentation }} fixed-address {{ config.fixed_address }};
3030
{%- endif %}
3131
{%- if 'filename' in config %}
32-
{{ intendation }} filename "{{ config.filename }}";
32+
{{ indentation }} filename "{{ config.filename }}";
3333
{%- endif %}
3434
{%- if 'next_server' in config %}
35-
{{ intendation }} next-server {{ config.next_server }};
35+
{{ indentation }} next-server {{ config.next_server }};
3636
{%- endif %}
3737
{%- if 'server_name' in config %}
38-
{{ intendation }} server-name "{{ config.server_name }}";
38+
{{ indentation }} server-name "{{ config.server_name }}";
3939
{%- endif %}
4040
{%- if 'host_name' in config %}
41-
{{ intendation }} option host-name "{{ config.host_name }}";
41+
{{ indentation }} option host-name "{{ config.host_name }}";
4242
{%- endif %}
4343
{%- for option in customized.keys() %}
4444
{%- if option in config %}
4545
{%- if customized[option]['type'] in types_to_quote %} {% set quote = dquote %} {%- endif %}
46-
{{ intendation }} option {{ option|replace('_', '-') }} {{ quote }}{{ config.get(option) }}{{ quote }};
46+
{{ indentation }} option {{ option|replace('_', '-') }} {{ quote }}{{ config.get(option) }}{{ quote }};
4747
{%- endif %}
4848
{%- endfor %}
4949
}

dhcpd/files/subnet.jinja

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,92 +3,92 @@
33
# {{ line }}
44
{%- endfor %}
55
{%- endif %}
6-
{{ intendation }}subnet {{ subnet }} netmask {{ config.netmask }} {
6+
{{ indentation }}subnet {{ subnet }} netmask {{ config.netmask }} {
77
{%- if 'use_host_decl_names' in config %}
8-
{{ intendation }} use-host-decl-names {{ config.use_host_decl_names }};
8+
{{ indentation }} use-host-decl-names {{ config.use_host_decl_names }};
99
{%- endif %}
1010
{%- if 'range' in config %}
1111
{%- if 'dynamic_bootp' in config and config.dynamic_bootp %}
12-
{{ intendation }} range dynamic-bootp {{ config.range[0] }} {{ config.range[1] }};
12+
{{ indentation }} range dynamic-bootp {{ config.range[0] }} {{ config.range[1] }};
1313
{%- else %}
14-
{{ intendation }} range {{ config.range[0] }} {{ config.range[1] }};
14+
{{ indentation }} range {{ config.range[0] }} {{ config.range[1] }};
1515
{%- endif %}
1616
{%- endif %}
1717
{%- if 'broadcast_address' in config %}
18-
{{ intendation }} option broadcast-address {{ config['broadcast_address'] }};
18+
{{ indentation }} option broadcast-address {{ config['broadcast_address'] }};
1919
{%- endif %}
2020
{%- if 'domain_name_servers' in config %}
21-
{{ intendation }} option domain-name-servers {{ config['domain_name_servers']|join(',') }};
21+
{{ indentation }} option domain-name-servers {{ config['domain_name_servers']|join(',') }};
2222
{%- endif %}
2323
{%- if 'netbios_name_servers' in config %}
24-
{{ intendation }} option netbios-name-servers {{ config['netbios_name_servers']|join(',') }};
24+
{{ indentation }} option netbios-name-servers {{ config['netbios_name_servers']|join(',') }};
2525
{%- endif %}
2626
{%- if 'ntp_servers' in config %}
27-
{{ intendation }} option ntp-servers {{ config['ntp_servers']|join(',') }};
27+
{{ indentation }} option ntp-servers {{ config['ntp_servers']|join(',') }};
2828
{%- endif %}
2929
{%- if 'lpr_servers' in config %}
30-
{{ intendation }} option lpr-servers {{ config['lpr_servers']|join(',') }};
30+
{{ indentation }} option lpr-servers {{ config['lpr_servers']|join(',') }};
3131
{%- endif %}
3232
{%- if 'irc_server' in config %}
33-
{{ intendation }} option irc-server {{ config['irc_server']|join(',') }};
33+
{{ indentation }} option irc-server {{ config['irc_server']|join(',') }};
3434
{%- endif %}
3535
{%- if 'tftp_server_name' in config %}
36-
{{ intendation }} option tftp-server-name "{{ config['tftp_server_name'] }}";
36+
{{ indentation }} option tftp-server-name "{{ config['tftp_server_name'] }}";
3737
{%- endif %}
3838
{%- if 'smtp_server' in config %}
39-
{{ intendation }} option smtp-server {{ config['smtp_server'] }};
39+
{{ indentation }} option smtp-server {{ config['smtp_server'] }};
4040
{%- endif %}
4141
{%- if 'domain_name' in config %}
42-
{{ intendation }} option domain-name "{{ config['domain_name'] }}";
42+
{{ indentation }} option domain-name "{{ config['domain_name'] }}";
4343
{%- endif %}
4444
{%- if 'domain_search' in config %}
45-
{{ intendation }} option domain-search "{{ config['domain_search']|join('","') }}";
45+
{{ indentation }} option domain-search "{{ config['domain_search']|join('","') }}";
4646
{%- endif %}
4747
{%- if 'filename' in config %}
48-
{{ intendation }} filename "{{ config['filename'] }}";
48+
{{ indentation }} filename "{{ config['filename'] }}";
4949
{%- endif %}
5050
{%- if 'next_server' in config %}
51-
{{ intendation }} next-server {{ config['next_server'] }};
51+
{{ indentation }} next-server {{ config['next_server'] }};
5252
{%- endif %}
5353
{%- if 'default_lease_time' in config %}
54-
{{ intendation }} default-lease-time {{ config['default_lease_time'] }};
54+
{{ indentation }} default-lease-time {{ config['default_lease_time'] }};
5555
{%- endif %}
5656
{%- if 'max_lease_time' in config %}
57-
{{ intendation }} max-lease-time {{ config['max_lease_time'] }};
57+
{{ indentation }} max-lease-time {{ config['max_lease_time'] }};
5858
{%- endif %}
5959
{%- if 'routers' in config and config.routers is string %}
60-
{{ intendation }} option routers {{ config.routers }};
60+
{{ indentation }} option routers {{ config.routers }};
6161
{%- elif 'routers' in config and config.routers is sequence %}
62-
{{ intendation }} option routers
62+
{{ indentation }} option routers
6363
{%- for router in config.routers %} {{ router }}
6464
{%- if not loop.last %},{% else %};{% endif %}
6565
{%- endfor %}
6666
{%- endif %}
6767
{%- for option in customized.keys() %}
6868
{%- if option in config %}
6969
{%- if customized[option]['type'] in types_to_quote %} {% set quote = dquote %} {%- endif %}
70-
{{ intendation }} option {{ option|replace('_', '-') }} {{ quote }}{{ config.get(option) }}{{ quote }};
70+
{{ indentation }} option {{ option|replace('_', '-') }} {{ quote }}{{ config.get(option) }}{{ quote }};
7171
{%- endif %}
7272
{%- endfor %}
7373
{%- for pool in salt['pillar.get']('dhcpd:subnets:{0}:pools'.format(subnet), []) %}
74-
{{ intendation }} pool {
74+
{{ indentation }} pool {
7575
{%- if 'failover_peer' in pool %}
76-
{{ intendation }} failover peer "{{ pool['failover_peer'] }}";
76+
{{ indentation }} failover peer "{{ pool['failover_peer'] }}";
7777
{%- endif %}
7878
{%- if 'max_lease_time' in pool %}
79-
{{ intendation }} max-lease-time {{ pool.max_lease_time }};
79+
{{ indentation }} max-lease-time {{ pool.max_lease_time }};
8080
{%- endif %}
8181
{%- if 'range' in pool %}
82-
{{ intendation }} range {{ pool.range[0] }} {{ pool.range[1] }};
82+
{{ indentation }} range {{ pool.range[0] }} {{ pool.range[1] }};
8383
{%- endif %}
8484
{%- if 'allow' in pool %}
85-
{{ intendation }} allow {{ pool.allow }};
85+
{{ indentation }} allow {{ pool.allow }};
8686
{%- elif 'deny' in pool %}
87-
{{ intendation }} deny {{ pool.deny }};
87+
{{ indentation }} deny {{ pool.deny }};
8888
{%- endif %}
89-
{{ intendation }} }
89+
{{ indentation }} }
9090
{%- endfor %}
9191
{%- for host, config in salt['pillar.get']('dhcpd:subnets:{0}:hosts'.format(subnet), {}).items() %}
9292
{%- include 'dhcpd/files/host.jinja' with context %}
9393
{%- endfor %}
94-
{{ intendation }}}
94+
{{ indentation }}}

0 commit comments

Comments
 (0)