Services Blog Français

playlabs: 30 seconds overview

| by jpic | playlabs linux python ansible best-practice

Quick version of the previous article on playlabs

$ playlabs Playlabs: the obscene ansible distribution.

Init your ssh user with your key and secure sshd and passwordless sudo:

playlabs init root@1.2.3.4
# all options are ansible options are proxied
playlabs init @somehost --ask-become-pass

Now your user can install roles:

playlabs install docker,firewall,nginx @somehost

And deploy a project, examples:

playlabs @somehost deploy image=betagouv/mrs:master
playlabs @somehost deploy
    image=betagouv/mrs:master
    plugins=postgres,django,uwsgi
    backup_password=foo
    prefix=ybs
    instance=hack
    env.SECRET_KEY=itsnotasecret
playlabs @somehost deploy
    prefix=testenv
    instance=$CI_BRANCH
    image=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA

If you have that work, creating an inventory is the way to move on, wether you want to version configuration, add a deploy user for your CI, configure a secret backup password, add ssh-keys …:

Read More

PlayLabs: the Obscene Ansible Distribution, long version

| by jpic | python linux ansible best-practice playlabs

From baremetal to deploying docker images on a PaaS in one command ?

PlayLabs is the result of a refactor of playbooks we’ve had in production for a while to acheive hackable docker-based PaaS. The refactor was designed to be Open Source, almost there to beta.

PlayLabs combines simple ansible patterns with packaged roles to create a docker orchestrated paas to prototype products for development to production.

PlayLabs does not deal with HA, for HA you will need to do the ansible plugins yourself, or use kubernetes … but until then, PlayLabs do everything else, even configure your own sentry or kubernetes servers ! Or install things like sendmail and netdata for alerts and more … Detail here of the current development:

Read More

Django tests that write themselves

| by jpic | python django best-practices

This is a plain advertisement for two excellent test utils maintained by YourLabs:

If you’re volunteering on a project, and that there are many newbie contributors - who turn out to be militants with a high determination - then you definitively want to check out these apps as they will highly facilitate your volunteering in a project as sole professional dev.

django-autocomplete-light 3.3.1 release

| by jpic | python django django-autocomplete-light

Thanks to awesome contributors from all around the world, DAL 3.3.1 is out, one month after 3.3.0, that was the first non-rc release of 3.3.0 which starts to require Django 2.0.

3.3.1

  • Fixed a bug in the way jquery.init.js was being used by @coredumperror
  • Set select2 container CSS class to :all: @hbielenia
  • Added missing renderer parameter to render method for django 2.1 @monim67
  • Fix ImportError with SELECT2_TRANSLATIONS in Django 1.x @hugorodgerbrown
  • Forward argument should always be a tuple @jihoon796
  • Fixed exception thrown from Select2QuerySEtView when paginate_by is set @coredumperror
Previous Page 10 of 33 Next Page

They trust us

Contact

logo