Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Repo Management for Centos, Redhat, LinuzAmazon #16

Merged
merged 14 commits into from
Mar 17, 2017

Conversation

alexvaque
Copy link

Adding Repo Management for Centos, Redhat, LinuzAmazon

@@ -52,4 +51,11 @@
scheduler => {},
mysql_replication_hostgroups => {},
}

# 'CentOS', 'Fedora', 'Scientific', 'RedHat', 'Amazon', 'OracleLinux'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add spec tests and add the supported OS's to metadata.json so spec tests will start testing for these OS's too...

# 'CentOS', 'Fedora', 'Scientific', 'RedHat', 'Amazon', 'OracleLinux'
$rpm_repo_name = 'mariadb_repo'
$rpm_repo_descr = 'mariadb_repo_for_proxysql'
$rpm_repo = 'http://yum.mariadb.org/10.1/centos6-amd64'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the correct repo url?

@bastelfreak
Copy link
Member

Hi @alexvaque, please check the used email address in your commit. It is currently not associated with your github account.

@bastelfreak bastelfreak added the enhancement New feature or request label Mar 8, 2017
@alexvaque
Copy link
Author

alexvaque commented Mar 10, 2017 via email

@mcrauwel
Copy link
Member

but in neither of those repo's there is a proxysql package...

@alexvaque
Copy link
Author

alexvaque commented Mar 13, 2017

Hello McRauwel

About that.

but in neither of those repo's there is a proxysql package...
I confirm that If you install the Percona or Mariadb Repository , you can find a proxysql package.

For example you could check it doing :
$ yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
$ yum install proxysql

Actually, I am thinking that maybe will be better to install through the RPM directly without repository update.

Doing something like that, but using Puppet. I need to think how to adapt this idea in your Puppet Module
$ yum install https://www.percona.com/redir/downloads/proxysql/proxysql-1.3.2/binary/redhat/6/x86_64/proxysql-1.3.2-1.1.x86_64.rpm

What do you think?

I am checking it and I will add spec tests and add the supported OS's to metadata.json that you mentioned me .

Thank you

@mcrauwel
Copy link
Member

@alexvaque that looks good! Percona seems to offer a package manager for proxysql (just not the latest releases)

also look at the travis output, you are mixing spaces and tabs. Travis (and rubocop) don't like that!

thnx in advance!

@bastelfreak
Copy link
Member

rubocop provides a nice way to fix errors, works often:

bundle exec rubocop -c .rubocop.yml -D -S -a

@mcrauwel
Copy link
Member

it look nice, I will try to test tonight, could you still look at the metadata.json file so the new OS's get tested also?

@alexvaque
Copy link
Author

alexvaque commented Mar 14, 2017

Could you still look at the metadata.json file so the new OS's get tested also?

OK , I will check. Thank you

You can see that now the module can manage the Proxysql through Package RPM or through Repository

through Repository

Using the Package by default that I added to params.pp

include proxysql

Also we can change the repository with something like that:


class { 'proxysql':
    rpm_repo_name   => 'percona_repo',
    rpm_repo_descr  => 'percona_repo_contains_proxysql',
    rpm_repo        => 'http://repo.percona.com/release/$releasever/RPMS/$basearch',
    rpm_repo_key    => 'https://www.percona.com/downloads/RPM-GPG-KEY-percona',
  }

through Package
If someone prefer to use RPM Package we can use the following

Using the default RPM added in the module

class { 'proxysql':
    manage_rpm => true,
  }

Or using specific RPM URL

  class { 'proxysql':
    manage_rpm      => true,
    package_source  => 'https://www.percona.com/redir/downloads/proxysql/proxysql-1.3.2/binary/redhat/6/x86_64/proxysql-1.3.2-1.1.x86_64.rpm',
  } 

@alexvaque
Copy link
Author

Good morning , Any news about the last changes? Do you need some improvements or changes? Or last changes are OK ? Thank you :)

@mcrauwel
Copy link
Member

I'm just updating the readme and docs so we can start publishing this to the forge also! thank you for your contribution!

@mcrauwel mcrauwel merged commit c753cdc into voxpupuli:master Mar 17, 2017
cegeka-jenkins pushed a commit to cegeka/puppet-proxysql that referenced this pull request Aug 22, 2023
Adding Repo Management for Centos, Redhat, LinuzAmazon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants