<commit_before>#
# Cookbook Name:: cookbook-omnibus-gitlab
# Recipe:: default
#
# Copyright (C) 2014 YOUR_NAME
#
# All rights reserved - Do Not Redistribute
#

# Fetch encrypted configuration settings (passwords, keys etc.) from an
# encrypted data bag
environment_secrets = OmnibusGitlab.environment_secrets_for_node(node)

pkg_base_url = node['omnibus-gitlab']['package']['base_url']
pkg_repo = node['omnibus-gitlab']['package']['repo']
package 'curl'

case node['platform_family']
when 'debian'
  execute "add #{pkg_base_url}/#{pkg_repo} apt repo" do
    command "curl #{pkg_base_url}/install/repositories/#{pkg_repo}/script.deb.sh | bash"
    creates "/etc/apt/sources.list.d/#{pkg_repo.sub('/','_')}.list"
  end

  package node['omnibus-gitlab']['package']['name'] do
    version node['omnibus-gitlab']['package']['version']
  end
when 'rhel'
  execute "add #{pkg_base_url}/#{pkg_repo} yum repo" do
    command "curl #{pkg_base_url}/install/repositories/#{pkg_repo}/script.rpm.sh | bash"
    creates "/etc/yum.repos.d/#{pkg_repo.sub('/','_')}.repo"
  end

  package node['omnibus-gitlab']['package']['name'] do
    version node['omnibus-gitlab']['package']['version']<commit_msg>Run reconfigure when a new package is installed<commit_after>#
# Cookbook Name:: cookbook-omnibus-gitlab
# Recipe:: default
#
# Copyright (C) 2014 YOUR_NAME
#
# All rights reserved - Do Not Redistribute
#

# Fetch encrypted configuration settings (passwords, keys etc.) from an
# encrypted data bag
environment_secrets = OmnibusGitlab.environment_secrets_for_node(node)

pkg_base_url = node['omnibus-gitlab']['package']['base_url']
pkg_repo = node['omnibus-gitlab']['package']['repo']
package 'curl'

case node['platform_family']
when 'debian'
  execute "add #{pkg_base_url}/#{pkg_repo} apt repo" do
    command "curl #{pkg_base_url}/install/repositories/#{pkg_repo}/script.deb.sh | bash"
    creates "/etc/apt/sources.list.d/#{pkg_repo.sub('/','_')}.list"
  end

  package node['omnibus-gitlab']['package']['name'] do
    version node['omnibus-gitlab']['package']['version']
    notifies :run, 'execute[gitlab-ctl reconfigure]'
  end
when 'rhel'
  execute "add #{pkg_base_url}/#{pkg_repo} yum repo" do
    command "curl #{pkg_base_url}/install/repositories/#{pkg_repo}/script.rpm.sh | bash"
    creates "/etc/yum.repos.d/#{pkg_repo.sub('/','_')}.repo"
  end

  package node['omnibus-gitlab']['package']['name'] do
    version node['omnibus-gitlab']['package']['version']
    notifies :run, 'execute[gitlab-ctl reconfigure]'
{'fraction_non_alphanumeric': 0.1722488038277512, 'fraction_numerical': 0.003189792663476874, 'mean_word_length': 5.5680628272251305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1830573', 'n_tokens_mistral': 901, 'n_tokens_neox': 850, 'n_words': 172}