Chapters
30 Chapters
|
2:45:48
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!Compatible PHP versions: >=5.5.9
Subscribe to download the code!Compatible PHP versions: >=5.5.9
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
30.
Launch a Cloud Instance!
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
This tutorial is built using an older version of Symfony, but the core concepts of Ansible are still valid. New versions of Ansible may contain some features that we don't use here.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.1.*", // v3.1.4
"doctrine/orm": "^2.5", // v2.7.2
"doctrine/doctrine-bundle": "^1.6", // 1.6.4
"doctrine/doctrine-cache-bundle": "^1.2", // 1.3.0
"symfony/swiftmailer-bundle": "^2.3", // v2.3.11
"symfony/monolog-bundle": "^2.8", // 2.11.1
"symfony/polyfill-apcu": "^1.0", // v1.2.0
"sensio/distribution-bundle": "^5.0", // v5.0.12
"sensio/framework-extra-bundle": "^3.0.2", // v3.0.16
"incenteev/composer-parameter-handler": "^2.0", // v2.1.2
"doctrine/doctrine-migrations-bundle": "^1.2", // v1.2.0
"snc/redis-bundle": "^2.0", // 2.0.0
"predis/predis": "^1.1", // v1.1.1
"composer/package-versions-deprecated": "^1.11" // 1.11.99
},
"require-dev": {
"sensio/generator-bundle": "^3.0", // v3.0.8
"symfony/phpunit-bridge": "^3.0", // v3.1.4
"doctrine/data-fixtures": "^1.1", // 1.3.3
"hautelook/alice-bundle": "^1.3" // v1.4.1
}
}
10 Comments
A fantastic course, entertaining and too useful. Thank you very much there
Hey Ricardo,
I'm happy you like it! ;)
Btw, you may be interested in our another Ansible courses called Ansistrano: https://knpuniversity.com/s... . Check it out if you're interested in deploying apps with Ansible.
Cheers!
Dammit, Victor, I got my hands dirty around with deploy helper and I have done deploy and rollback, anyhow I'll check Ansistrano
BTW: I use it to deploy my Laravel app
Hey Ricardo,
Haha, oh man, we used to have an old creppy deploy on KnpU using rsync, but then finally migrated to the Ansistrano - now deploys are much much easier and clearer. And now we have zero-downtime deploys!
It should fit just fine for any web app, very similar to Capistrano strategy in case your heard about it.
Cheers!
Great tutorial ! But it miss some stuff IMO :
- Clone a git repo that's private
- Secure some stuff (Iptables, Fail2ban, etc...)
- create the mysq user instead of the root one
What do you think ?
Hey Numerogeek,
Thanks! About topics you mentioned:
> Clone a git repo that's private
We covered it in the Ansistrano tutorial, see: https://knpuniversity.com/s...
> Secure some stuff (Iptables, Fail2ban, etc...)
Yeah, those topics are were not covered, I think those are slightly pro level and not all our users know what is Iptables, Fail2ban, etc. And we didn't want to explain server terminology too much here to avoid blowups of this course which is about Ansible, not about administrating Linux servers :) BTW, Ansible has Iptables module, see: https://docs.ansible.com/an... - and we do explain what is Ansible module and how to use it in your playbooks. So if you know what is Iptables exactly - you can easily handle it by yourself.
> create the mysq user instead of the root one
We mostly talk about MySQL on VirtualBox so it's not a big deal to use root user - makes life easier during development, and thanks to expanded permissions we're able to create DB and schema with Symfony console commands. But yeah, that's a good point to keep in mind when deploy to production.
Cheers!
Thanks Victor for your generosity. This has removed the ansible 'cloud' from my eyes... completely. Let me head straight to Ansistrano
Hey Josiah,
You would like it! It's a cool and very flexible tool :)
Cheers!
So I got this error...
InvalidParameterCombination: VPC security groups may not be used for a non-VPC launch
Fixed by adding a vpc_subnet_id from the vpc of the security group.
Hey Maria,
Thanks for sharing this with us!
Cheers!
"Houston: no signs of life"
Start the conversation!