gitlab用户登录与AD域用户集成
[root@GitLab home]# gitlab-ctl reconfigure Starting Chef Client, version 12.12.15 resolving cookbooks for run list: ["gitlab"] Synchronizing Cookbooks: - gitlab (0.0.1) - registry (0.1.0) - package (0.1.0) - consul (0.0.0) - runit (0.14.2) Installing Cookbook Gems: Compiling Cookbooks... ================================================================================ Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb ================================================================================ Psych::SyntaxError ------------------ (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1 Cookbook Trace: --------------- /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:95:in `block in from_file' /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/config_mash.rb:28:in `auto_vivify' /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb:95:in `from_file' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:23:in `from_file' /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26:in `from_file' Relevant File Content: ---------------------- /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/helpers/settings_helper.rb: 88: def ee_attribute(name, **config) 89: config = { ee: true }.merge(config) 90: attribute(name, **config) 91: end 92: 93: def from_file(_file_path) 94: # Allow auto mash creation during from_file call 95>> Gitlab::ConfigMash.auto_vivify { super } 96: end 97: 98: def method_missing(method_name, *arguments) # rubocop:disable Style/MethodMissing 99: # Give better message for NilClass errors 100: # If there are no arguements passed, this is a 'GET' call, and if 101: # there is no matching key in the configuration, then it has not been set (not even to nil) 102: # and we will output a nicer error above the exception 103: if arguments.length.zero? && !configuration.key?(method_name) 104: breaktxt = '=' * 80 Platform: --------- x86_64-linux Running handlers: Running handlers complete Chef Client failed. 0 resources updated in 02 seconds
issue