Skip to content

Conflict with git formula #3

Open

Description

@davidkarlsen

Please see this discussion:
https://groups.google.com/forum/#!topic/salt-users/Mlr7oITFqZw
basically the guitlab formula conflicts with the git formula and should rather include/depend on it.

Activity

  1. gravyboat commented on May 13, 2014

    @gravyboat
    Contributor

    Quick fix here: #4

  2. viq commented on May 15, 2014

    @viq
    Contributor

    @davidkarlsen this should be fixed now, please verify.

  3. davidkarlsen commented on May 15, 2014

    @davidkarlsen
    ContributorAuthor

    Doesn´t work for me:

    EBUG   ] Rendered data from file: /var/cache/salt/minion/files/base/gitlab/nginx.sls:
    
    
    
    
    
    nginx:
      pkg:
        - installed
      service:
        - running
        - enable: True
        - require:
          - pkg: nginx
          - user: nginx
        - watch:
          - file: gitlab-nginx
      file.absent:
        - name: /etc/nginx/sites-enabled/default.conf
      user.present:
        - name: www-data
        - groups:
          - git
        - require:
          - pkg: nginx
    
    # https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab
    gitlab-nginx:
      file.managed:
        - name: /etc/nginx/sites-enabled/gitlab.conf
        - source: salt://gitlab/files/gitlab-nginx
        - template: jinja
        - user: root
        - group: root
        - mode: 644
        - require:
          - pkg: nginx
    
    
    
    
    [DEBUG   ] Results of YAML rendering: 
    OrderedDict([('nginx', OrderedDict([('pkg', ['installed']), ('service', ['running', OrderedDict([('enable', True)]), OrderedDict([('require', [OrderedDict([('pkg', 'nginx')]), OrderedDict([('user', 'nginx')])])]), OrderedDict([('watch', [OrderedDict([('file', 'gitlab-nginx')])])])]), ('file.absent', [OrderedDict([('name', '/etc/nginx/sites-enabled/default.conf')])]), ('user.present', [OrderedDict([('name', 'www-data')]), OrderedDict([('groups', ['git'])]), OrderedDict([('require', [OrderedDict([('pkg', 'nginx')])])])])])), ('gitlab-nginx', OrderedDict([('file.managed', [OrderedDict([('name', '/etc/nginx/sites-enabled/gitlab.conf')]), OrderedDict([('source', 'salt://gitlab/files/gitlab-nginx')]), OrderedDict([('template', 'jinja')]), OrderedDict([('user', 'root')]), OrderedDict([('group', 'root')]), OrderedDict([('mode', 644)]), OrderedDict([('require', [OrderedDict([('pkg', 'nginx')])])])])]))])
    [DEBUG   ] Loaded no_out as virtual quiet
    [DEBUG   ] Loaded json_out as virtual json
    [DEBUG   ] Loaded yaml_out as virtual yaml
    [DEBUG   ] Loaded pprint_out as virtual pprint
    local:
        Data failed to compile:
    ----------
        No matching sls found for 'gitlab' in env 'base'
    ----------
        No matching sls found for 'gitlab' in env 'base'
    root@main:/srv/pillar# 
    
  4. viq commented on May 15, 2014

    @viq
    Contributor

    Could you wrap it in a code block? This formatting makes it hard to read.

  5. davidkarlsen commented on May 16, 2014

    @davidkarlsen
    ContributorAuthor

    @viq OK, done

  6. davidkarlsen commented on May 22, 2014

    @davidkarlsen
    ContributorAuthor

    ping?

  7. tinuva commented on Jun 2, 2014

    @tinuva

    Just out of interest sake. If gitlab is to depend on the git formula, the git formula will need some changes for gitlab to work on CentOS ect. in the future.

    For example the inclusion of the PUIAS_6_computational repository, is specifically to get a new enough version of GIT that is compatible with Gitlab. If Gitlab requires on another Git formula, this repository needs to be included in said formula.

  8. whiteinge commented on Jun 2, 2014

    @whiteinge
    Contributor

    Hm. Gitlab does require Git 1.8 or newer. CentOS 6 is currently on 1.7.1. This version incompatibility was present before #4 was merged and should be a new issue.

    @tinuva how have you configured CentOS to run GitLab? Mind filing a new issue with details?

  9. viq commented on Jun 2, 2014

    @viq
    Contributor

    I was told it should actually work with what's available on CentOS, but I have not presonally verified yet - especially as I haven't yet managed on CentOS to make gitlab pick up a ruby new enough to work.

  10. tinuva commented on Jun 3, 2014

    @tinuva

    @whiteinge I am still busy working out all the broken states that I have to get there. Will do once I have everything working.

  11. viq commented on Jun 3, 2014

    @viq
    Contributor

    @tinuva how are you getting a ruby new enough to run gitlab on CentOS?

  12. viq commented on Jun 3, 2014

    @viq
    Contributor

    @davidkarlsen uhm, sorry. No, I don't really know why that's happening for you. What's your directory structure, where's your gitlab formula/state located?

  13. davidkarlsen commented on Jun 6, 2014

    @davidkarlsen
    ContributorAuthor

    I use gitfs:

    gitfs_remotes:
      ....
      - git@github.com:davidkarlsen/git-formula.git
      - git@github.com:davidkarlsen/gitlab-formula.git
      ....
    
    and have this in my state map:
      'roles:gitlab':
        - match: grain
        - gitlab
    
    and my grains:
    root@main:/srv/salt# cat /etc/salt/grains 
    roles:
      - dnsserver
      - javabuild
      - smtpserver
      - saltmaster
      - gitlab
    
  14. viq commented on Jun 6, 2014

    @viq
    Contributor

    @davidkarlsen it seems that one of the things gitlab formula references is not there - see #13236

    I am working on refreshing the gitlab formula somewhat, and making sure the stuff it uses is either self-contained or explicitly mentioned, but it's currently work in progress.

  15. davidkarlsen commented on Jun 10, 2014

    @davidkarlsen
    ContributorAuthor

    @viq Which #13236 ?

  16. viq commented on Jun 12, 2014

    @viq
    Contributor
  17. tinuva commented on Jun 17, 2014

    @tinuva

    @viq,

    I finally got Gitlab to build and install via this saltstack formula from a clean CentOS 6 install.

    Ruby and Git is now pulled from the following repository:
    http://ftp5.gwdg.de/pub/opensuse/repositories/home:/takehironet/CentOS_CentOS-6/home:takehironet.repo

    I removed the CentOS-SCL repo, as well as the Puias computation repo after enabling Takehironet's repository.

    That said, my tree is now a bit of a mess and need some cleaning up, but if you want I can still upload it so that you can have a look. It will need some more fine tuning to distinguish between CentOS 6 and 7 which will be released soon. It also needs to make use of more jinja maps, actually it need a lot of jinja love.

  18. viq commented on Jun 17, 2014

    @viq
    Contributor

    @tinuva thanks, I'll investigate that repo. Yeah, I would like to see your changes.

  19. tinuva commented on Jun 17, 2014

    @tinuva
  20. viq commented on Jun 17, 2014

    @viq
    Contributor

    @tinuva awesome, thank you.

  21. arnisoph commented on Jul 13, 2014

    @arnisoph

    I am working on refreshing the gitlab formula somewhat, and making sure the stuff it uses is either
    self-contained or explicitly mentioned, but it's currently work in progress.

    @viq I refactored the formula and uploaded it to https://github.com/bechtoldt/gitlab-formula . Feel free to share your ideas.

  22. viq commented on Jul 13, 2014

    @viq
    Contributor

    Have a look at a significant work @xmj did at
    viq#1 for making this work better
    on RedHat/CentOS.

    I'll try to look and comment, but I will apologise in advance as I am
    notoriously bad at doing things in any kind of timely manner :(

    viq

  23. arnisoph commented on Jul 19, 2014

    @arnisoph

    @viq no worries, we share the same problem. :)

  24. xmj commented on Jul 20, 2014

    @xmj

    I'm working on a FreeBSD port of GitLab at the moment, and will then extend and amalgamate the GitLab formulas mentioned above to run it there too. :)

  25. added a commit that references this issue on Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions