syntax - How to check YML grammar is correct (gitlab.yml) -
gitlab server can't start. reason because gitlab.yml configuration file not correct.
what tool use check yml grammar correct?
i have tried notepad++ , sublimetext, show small sign in different places:
notepad doesn't indent 1 line.
sublimetext
can indents , spaces problem in gitlab config parser?
what use, , works editor, comparison between:
gitlab.yml
gitlab.yml.example
i developed little bash diff script differences in keys (not values, since supposed put own values there)
## ldap setting ldap: (<--- key) enabled: true ^^^ ^^^ key value
i a:
cd gitlab/config check_all_diff .
that way, if there change in term of keys, key order, new keys or deleted keys, can spot when upgrade gitlab.
to summarize, need copy in directory part of $path
:
check_all_diff
check_diff
(calledcheck_all_diff
)
don't forget to:
chmod 755 check_all_diff check_diff
- don't introduce improper eol (end of line) character. if did,
dos2unix
take care of those.
Comments
Post a Comment