├── .gitignore ├── LICENSE ├── README.md ├── Vagrantfile └── provisioning ├── .gitignore ├── group_vars └── all ├── roles ├── alfresco │ ├── files │ │ ├── start_oo.sh │ │ └── web.xml │ ├── tasks │ │ └── main.yml │ └── templates │ │ ├── alfresco │ │ ├── alfresco-global.properties │ │ ├── alfresco.sh │ │ └── custom-log4j.properties ├── common │ └── tasks │ │ └── main.yml ├── java │ ├── files │ │ └── java_env.sh │ └── tasks │ │ └── main.yml ├── mysql │ └── tasks │ │ └── main.yml ├── openjdk │ └── tasks │ │ └── main.yml ├── postgresql │ ├── files │ │ └── pg_hba.conf │ └── tasks │ │ └── main.yml ├── solr │ ├── files │ │ └── web.xml │ ├── tasks │ │ └── main.yml │ └── templates │ │ ├── solr.xml │ │ └── solrcore.properties ├── tomcat │ ├── files │ │ └── tomcat.sh │ └── tasks │ │ └── main.yml └── tools │ └── tasks │ └── main.yml └── site.yml /.gitignore: -------------------------------------------------------------------------------- 1 | .vagrant/ 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ansible-alfresco 2 | 3 | [Ansible](http://www.ansible.com/home) playbook to deploy an allinone rpm-based machine alfresco community environment. Based on a 1524MB RAM (and relative JAVA_OPTS tuning) CentOS 6.4 [minimal vagrant box](https://github.com/2creatives/vagrant-centos/releases/tag/v6.5.1) and packed with following components: 4 | 5 | * Some prerequisites and utilities (wget, unzip, libselinux-python, python-psycopg2, MySQL-python, vim, byobu) 6 | * Oracle Java JDK 7 from Oracle website 7 | * Apache Tomcat 7 from Tomcat website 8 | * PostgreSql 9 from PostgreSql official rpm repo / Mysql 5 from Mysql official repo and Mysql-connector-java 9 | * ImageMagick from distro repo 10 | * FFmpeg from atrpms repo 11 | * Libreoffice from distro repo 12 | * SWFTools from rpmforge repo 13 | * Alfresco Community 4.2 Repository from Alfresco website 14 | * Alfresco Community 4.2 Share from Alfresco website 15 | 16 | Especially useful for virtual development environment, maybe using [Vagrant](http://www.vagrantup.com/). 17 | 18 | ## Configuration 19 | 20 | Configuration variables are in `group_vars/all`. You can adjust default values to your need, especially versions, username/password and JAVA_OPTS. 21 | 22 | ## Installation 23 | 24 | $ git clone https://github.com/libersoft/ansible-alfresco.git ansible-alfresco 25 | 26 | ## Usage 27 | 28 | 29 | ### Plain Ansible 30 | 31 | $ cd ansible-alfresco/provisioning 32 | $ ansible-playbook [target] site.yml 33 | 34 | Point your browser to `http://{{ target_ip }}:8080/share` 35 | 36 | * user:admin 37 | * password:admin 38 | 39 | ### Vagrant 40 | 41 | $ cd ansible-alfresco 42 | $ vagrant up 43 | $ vagrant provision 44 | 45 | Point your browser to `http://127.0.0.1:58080/share` 46 | 47 | * user:admin 48 | * password:admin 49 | 50 | ## Status 51 | 52 | Tested on some machines, ready for development environment. 53 | 54 | ## Future improvements 55 | 56 | * ~~Include Apache Solr~~ 57 | * Apt-based distro compatibility 58 | * Some refactoring (conditionals, variables, tags, users) 59 | * Multi machine environment 60 | * SSL enabled version 61 | 62 | Feel free to contribute. 63 | 64 | ## License 65 | 66 | [Gnu General Public License 3.0](https://www.gnu.org/licenses/gpl.html) 67 | 68 | ## Credits 69 | * [Step by step installation of Alfresco Community 4.2.c on Ubuntu 12.04 LTS minimal 64bit… please, no bundle!](http://fcorti.com/2013/01/09/installation-alfresco-4-2-c-on-ubuntu/) 70 | * [vagrant-centos](https://github.com/2creatives/vagrant-centos) 71 | * [vagrant-alfresco](https://github.com/maoo/vagrant-alfresco) 72 | * [chef-alfresco](https://github.com/maoo/chef-alfresco) 73 | -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | VAGRANTFILE_API_VERSION = "2" 2 | 3 | Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 4 | 5 | config.vm.box = "centos65" 6 | config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box" 7 | config.vm.network :forwarded_port, guest: 8080, host: 58080 8 | config.vm.hostname = 'vagrant-alfresco' 9 | config.ssh.forward_agent = true 10 | 11 | config.vm.provider :virtualbox do |vb,override| 12 | vb.customize ["modifyvm", :id, "--memory", 1536] 13 | end 14 | 15 | config.vm.provision "ansible" do |ansible| 16 | ansible.playbook = "provisioning/site.yml" 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /provisioning/.gitignore: -------------------------------------------------------------------------------- 1 | hosts 2 | -------------------------------------------------------------------------------- /provisioning/group_vars/all: -------------------------------------------------------------------------------- 1 | --- 2 | # java 3 | java_type: 'sun' 4 | java_version: '8u45' 5 | java_build: 'b14' 6 | 7 | # tomcat 8 | tomcat_version: '7.0.61' 9 | java_opts: '-Xms512m -Xmx1000m -Xss768k -XX:NewSize=256m -server' 10 | 11 | # db 12 | alfresco_db: 'mysql' 13 | alfresco_db_host: 'localhost' 14 | alfresco_db_name: 'alfresco' 15 | alfresco_db_user: 'alfresco' 16 | alfresco_db_password: 'alfresco' 17 | 18 | ## mysql 19 | mysql_root_db_pass: 'root' 20 | mysql_connector_version: '5.1.35' 21 | 22 | ## postgresql 23 | postgresqlversion: '9.3' 24 | postgresql_build: '1' 25 | 26 | # tools 27 | imagemagick_version: '6.5.4.7' 28 | 29 | # alfresco 30 | alfresco_build: '00012' 31 | alfresco_version: '4.2.f' 32 | alfresco_user: 'alfresco' 33 | alfresco_group: 'alfresco' 34 | alfresco_user_home: '/opt/alfresco' 35 | alfresco_data_home: '/opt/alfresco' 36 | alfresco_log_home: '/var/log/alfresco' 37 | alfresco_uid: '501' 38 | alfresco_indexing: 'lucene' 39 | 40 | # lucene 41 | index_recovery_mode: 'AUTO' 42 | 43 | # solr 44 | solr_host: 'localhost' 45 | solr_port: '8080' 46 | -------------------------------------------------------------------------------- /provisioning/roles/alfresco/files/start_oo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | SOFFICE_ROOT=/usr/bin 4 | "${SOFFICE_ROOT}/soffice" "--accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" --nologo --headless & 5 | -------------------------------------------------------------------------------- /provisioning/roles/alfresco/files/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | Alfresco Web Client 9 | 10 | Alfresco Web Client 11 | 12 | 13 | org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL 14 | true 15 | 16 | 17 | 18 | javax.faces.STATE_SAVING_METHOD 19 | server 20 | 21 | 22 | 23 | javax.faces.PARTIAL_STATE_SAVING_METHOD 24 | false 25 | 26 | 27 | 28 | javax.faces.CONFIG_FILES 29 | /WEB-INF/faces-config-app.xml,/WEB-INF/faces-config-beans.xml,/WEB-INF/faces-config-navigation.xml,/WEB-INF/faces-config-common.xml,/WEB-INF/faces-config-repo.xml,/WEB-INF/faces-config-wcm.xml,/WEB-INF/faces-config-custom.xml 30 | 31 | 32 | 33 | org.apache.myfaces.ALLOW_JAVASCRIPT 34 | true 35 | 36 | 37 | 38 | org.apache.myfaces.DETECT_JAVASCRIPT 39 | false 40 | This is an EXPERIMENTAL feature, so leave it off for now! 41 | 42 | 43 | 44 | org.apache.myfaces.SERIALIZE_STATE_IN_SESSION 45 | false 46 | Stop MyFaces from Serializing the state to the session 47 | 48 | 49 | 50 | 51 | org.apache.myfaces.PRETTY_HTML 52 | true 53 | 54 | If true, rendered HTML code will be formatted, so that it is "human readable". 55 | i.e. additional line separators and whitespace will be written, that do not 56 | influence the HTML code. 57 | Default: "true" 58 | 59 | 60 | 61 | 62 | org.apache.myfaces.AUTO_SCROLL 63 | false 64 | 65 | If true, a javascript function will be rendered that is able to restore the 66 | former vertical scroll on every request. Convenient feature if you have pages 67 | with long lists and you do not want the browser page to always jump to the top 68 | if you trigger a link or button action that stays on the same page. 69 | Default: "false" 70 | 71 | 72 | 73 | 74 | 75 | contextConfigLocation 76 | /WEB-INF/web-application-context.xml 77 | Spring config file location 78 | 79 | 80 | 81 | log4jExposeWebAppRoot 82 | false 83 | Do not try to resolve web app root as file 84 | 85 | 86 | 89 | 90 | store 91 | workspace://SpacesStore 92 | 93 | 94 | rootPath 95 | /app:company_home 96 | 97 | 98 | 99 | org.apache.myfaces.ERROR_HANDLING 100 | false 101 | 102 | 103 | 104 | 105 | 106 | CMIS security context cleaning filter 107 | Cleans security context before authentication via the CMIS services or filters. Mapped only for CMIS 108 | org.alfresco.web.app.servlet.CmisSecurityContextCleanerFilter 109 | 110 | 111 | 112 | Authentication Filter 113 | Authentication filter mapped only to faces URLs. Other URLs generally use proprietary means to talk to the AuthenticationComponent 114 | org.alfresco.repo.web.filter.beans.BeanProxyFilter 115 | 116 | beanName 117 | AuthenticationFilter 118 | 119 | 120 | 121 | 122 | Global Authentication Filter 123 | Authentication filter mapped to all authenticated URLs. Mainly for SSO support 124 | org.alfresco.repo.web.filter.beans.BeanProxyFilter 125 | 126 | beanName 127 | GlobalAuthenticationFilter 128 | 129 | 130 | 131 | 132 | WebScript Authentication Filter 133 | Authentication filter mapped to web script URLs. Mainly for SSO support 134 | org.alfresco.repo.web.filter.beans.BeanProxyFilter 135 | 136 | beanName 137 | WebscriptAuthenticationFilter 138 | 139 | 140 | 141 | 142 | WebScript Cookie Authentication Filter 143 | Directly handles login script calls, allowing Surf to establish a cookie for a manual login 144 | org.alfresco.repo.web.filter.beans.BeanProxyFilter 145 | 146 | beanName 147 | WebscriptCookieAuthenticationFilter 148 | 149 | 150 | 151 | 152 | WebDAV Authentication Filter 153 | org.alfresco.repo.web.filter.beans.BeanProxyFilter 154 | 155 | beanName 156 | WebDavAuthenticationFilter 157 | 158 | 159 | 160 | 161 | Admin Authentication Filter 162 | org.alfresco.web.app.servlet.AdminAuthenticationFilter 163 | 164 | 165 | 166 | CacheExpiresFilter 167 | Set HTTP cache Expires header 30 days forward for a mapping. 168 | org.alfresco.web.scripts.servlet.StaticAssetCacheFilter 169 | 170 | expires 171 | 30 172 | Add an Expires Header 30 days forward 173 | 174 | 175 | 176 | 177 | Global Localization Filter 178 | Sets fallback default locale for ALL requests 179 | org.alfresco.web.app.servlet.GlobalLocalizationFilter 180 | 181 | 182 | 183 | JSF Session Synchronized Filter 184 | org.alfresco.repo.web.filter.beans.SessionSynchronizedFilter 185 | 186 | 187 | 188 | Global Localization Filter 189 | /* 190 | 191 | 192 | 193 | CMIS security context cleaning filter 194 | /cmisws/* 195 | 196 | 197 | 198 | CMIS security context cleaning filter 199 | /cmisatom/* 200 | 201 | 202 | 203 | Global Authentication Filter 204 | /navigate/* 205 | 206 | 207 | 208 | Global Authentication Filter 209 | /command/* 210 | 211 | 212 | 213 | Global Authentication Filter 214 | /download/* 215 | 216 | 217 | 218 | Global Authentication Filter 219 | /template/* 220 | 221 | 222 | 223 | Global Authentication Filter 224 | /n/* 225 | 226 | 227 | 228 | Global Authentication Filter 229 | /c/* 230 | 231 | 232 | 233 | Global Authentication Filter 234 | /t/* 235 | 236 | 237 | 238 | Global Authentication Filter 239 | /d/* 240 | 241 | 242 | 243 | 244 | WebScript Cookie Authentication Filter 245 | /wcservice/* 246 | 247 | 248 | 249 | WebScript Cookie Authentication Filter 250 | /wcs/* 251 | 252 | 253 | 254 | 255 | WebScript Authentication Filter 256 | /wcservice/* 257 | 258 | 259 | 260 | WebScript Authentication Filter 261 | /wcs/* 262 | 263 | 264 | 265 | Global Authentication Filter 266 | /wcservice/* 267 | 268 | 269 | 270 | Global Authentication Filter 271 | /wcs/* 272 | 273 | 274 | 275 | Global Authentication Filter 276 | /ajax/* 277 | 278 | 279 | 280 | Global Authentication Filter 281 | /faces/* 282 | 283 | 284 | 285 | Authentication Filter 286 | /faces/* 287 | 288 | 289 | 290 | WebDAV Authentication Filter 291 | /webdav/* 292 | 293 | 294 | 295 | Admin Authentication Filter 296 | /faces/jsp/admin/* 297 | 298 | 299 | 300 | Admin Authentication Filter 301 | /faces/jsp/categories/* 302 | 303 | 304 | 305 | Admin Authentication Filter 306 | /faces/jsp/groups/* 307 | 308 | 309 | 310 | Admin Authentication Filter 311 | /faces/jsp/users/delete-user.jsp 312 | 313 | 314 | 315 | Admin Authentication Filter 316 | /faces/jsp/users/users.jsp 317 | 318 | 319 | 320 | Admin Authentication Filter 321 | /faces/jsp/admin/system-info.jsp 322 | 323 | 324 | 325 | JSF Session Synchronized Filter 326 | /faces/* 327 | 328 | 329 | 330 | Global Authentication Filter 331 | /cmisatom/* 332 | 333 | 334 | 335 | Authentication Filter 336 | /cmisatom/* 337 | 338 | 339 | 340 | CacheExpiresFilter 341 | *.jpg 342 | 343 | 344 | CacheExpiresFilter 345 | *.png 346 | 347 | 348 | CacheExpiresFilter 349 | *.gif 350 | 351 | 352 | CacheExpiresFilter 353 | *.css 354 | 355 | 356 | CacheExpiresFilter 357 | *.js 358 | 359 | 360 | 361 | org.apache.myfaces.webapp.StartupServletContextListener 362 | 363 | 364 | 365 | org.springframework.web.util.Log4jConfigListener 366 | 367 | 368 | 369 | 370 | org.alfresco.web.app.ContextLoaderListener 371 | 372 | 373 | 374 | 375 | org.alfresco.web.app.ContextListener 376 | 377 | 378 | 379 | 380 | org.alfresco.repo.webdav.WebDAVSessionListener 381 | 382 | 383 | 384 | 385 | com.sun.xml.ws.transport.http.servlet.WSServletContextListener 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | Faces Servlet 394 | javax.faces.webapp.FacesServlet 395 | 1 396 | 397 | 398 | 399 | uploadFile 400 | org.alfresco.web.app.servlet.UploadFileServlet 401 | 402 | 403 | 404 | uploadContent 405 | org.alfresco.web.app.servlet.UploadContentServlet 406 | 407 | 408 | 409 | downloadContent 410 | org.alfresco.web.app.servlet.DownloadContentServlet 411 | 412 | 413 | 414 | downloadRawContent 415 | org.alfresco.web.app.servlet.DownloadRawContentServlet 416 | 417 | 418 | 419 | guestDownloadContent 420 | org.alfresco.web.app.servlet.GuestDownloadContentServlet 421 | 422 | 423 | 424 | guestTemplateContent 425 | org.alfresco.web.app.servlet.GuestTemplateContentServlet 426 | 427 | 428 | 429 | externalAccess 430 | org.alfresco.web.app.servlet.ExternalAccessServlet 431 | 432 | 433 | 434 | templateContent 435 | org.alfresco.web.app.servlet.TemplateContentServlet 436 | 437 | 438 | 439 | commandServlet 440 | org.alfresco.web.app.servlet.CommandServlet 441 | 442 | 443 | 444 | ajaxServlet 445 | org.alfresco.web.app.servlet.ajax.AjaxServlet 446 | 447 | 448 | 449 | axis 450 | org.apache.axis.transport.http.AxisServlet 451 | 5 452 | 453 | 454 | 455 | CXFServlet 456 | org.apache.cxf.transport.servlet.CXFServlet 457 | 6 458 | 459 | 460 | 461 | WebDAV 462 | org.alfresco.repo.webdav.WebDAVServlet 463 | 5 464 | 465 | 466 | 467 | apiServlet 468 | org.springframework.extensions.webscripts.servlet.WebScriptServlet 469 | 470 | authenticator 471 | webscripts.authenticator.basic 472 | 473 | 474 | 475 | 476 | wcapiServlet 477 | org.springframework.extensions.webscripts.servlet.WebScriptServlet 478 | 479 | authenticator 480 | webscripts.authenticator.webclient 481 | 482 | 483 | 484 | 485 | portalapiServlet 486 | org.springframework.extensions.webscripts.servlet.WebScriptServlet 487 | 488 | authenticator 489 | webscripts.authenticator.webclient 490 | 491 | 492 | 493 | 494 | facebookServlet 495 | org.alfresco.repo.web.scripts.facebook.FacebookServlet 496 | 497 | authenticator 498 | webscripts.authenticator.facebook 499 | 500 | 501 | 502 | 503 | fbapiServlet 504 | org.alfresco.repo.web.scripts.facebook.FacebookAPIServlet 505 | 506 | authenticator 507 | webscripts.authenticator.facebook 508 | 509 | 510 | 511 | 512 | proxyServlet 513 | org.alfresco.web.app.servlet.HTTPProxyServlet 514 | 515 | 516 | 517 | workflowDefinitionImageServlet 518 | org.alfresco.web.app.servlet.WorkflowDefinitionImageServlet 519 | 520 | 521 | 522 | JBPMDeployProcessServlet 523 | org.alfresco.web.app.servlet.JBPMDeployProcessServlet 524 | 525 | 526 | 527 | CMISFileShareServlet 528 | org.apache.chemistry.opencmis.browser.BrowseServlet 529 | 530 | auxroot 531 | cmisfs/browser/ 532 | 533 | 534 | allow 535 | http.* 536 | 537 | 538 | stylesheet:application/atomsvc+xml 539 | /cmisfs/stylesheets/service.xsl 540 | 541 | 542 | stylesheet:application/atom+xml;type=feed 543 | /cmisfs/stylesheets/feed.xsl 544 | 545 | 546 | stylesheet:application/cmistree+xml 547 | /cmisfs/stylesheets/feed.xsl 548 | 549 | 550 | stylesheet:application/atom+xml;type=entry 551 | /cmisfs/stylesheets/entry.xsl 552 | 553 | 554 | stylesheet:application/cmisallowableactions+xml 555 | /cmisfs/stylesheets/actions.xsl 556 | 557 | 558 | stylesheet:application/cmisacl+xml 559 | /cmisfs/stylesheets/acl.xsl 560 | 561 | 562 | override-stylesheet:renditions 563 | /cmisfs/stylesheets/renditions.xsl 564 | 565 | 566 | override-stylesheet:relationships 567 | /cmisfs/stylesheets/relationships.xsl 568 | 569 | 570 | override-stylesheet:thumbnails 571 | /cmisfs/stylesheets/thumbnails.xsl 572 | 573 | 574 | 575 | 576 | cmisws10 577 | org.apache.chemistry.opencmis.server.impl.webservices.CmisWebServicesServlet 578 | 579 | cmisVersion 580 | 1.0 581 | 582 | 7 583 | 584 | 585 | 586 | cmisws11 587 | org.apache.chemistry.opencmis.server.impl.webservices.CmisWebServicesServlet 588 | 589 | cmisVersion 590 | 1.1 591 | 592 | 7 593 | 594 | 595 | 596 | cmisatom10 597 | org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet 598 | 599 | callContextHandler 600 | org.apache.chemistry.opencmis.server.shared.BasicAuthCallContextHandler 601 | 602 | 603 | cmisVersion 604 | 1.0 605 | 606 | 8 607 | 608 | 609 | 610 | cmisbrowser 611 | org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet 612 | 613 | callContextHandler 614 | org.apache.chemistry.opencmis.server.shared.BasicAuthCallContextHandler 615 | 616 | 8 617 | 618 | 619 | 620 | cmistck 621 | org.apache.chemistry.opencmis.tck.runner.WebRunnerServlet 622 | 8 623 | 624 | 625 | 626 | authenticatorServlet 627 | org.alfresco.repo.web.scripts.servlet.AuthenticatorServlet 628 | 629 | 630 | 631 | publicapiServlet 632 | org.alfresco.rest.api.PublicApiWebScriptServlet 633 | 634 | authenticator 635 | publicapi.authenticator 636 | 637 | 638 | 639 | 640 | 641 | 642 | Faces Servlet 643 | /faces/* 644 | 645 | 646 | 647 | uploadFile 648 | /uploadFileServlet 649 | 650 | 651 | 652 | uploadContent 653 | /upload/* 654 | 655 | 656 | 657 | downloadContent 658 | /download/* 659 | 660 | 661 | 662 | downloadContent 663 | /d/* 664 | 665 | 666 | 667 | downloadRawContent 668 | /dr 669 | 670 | 671 | 672 | guestDownloadContent 673 | /guestDownload/* 674 | 675 | 676 | 677 | guestDownloadContent 678 | /gd/* 679 | 680 | 681 | 682 | templateContent 683 | /template/* 684 | 685 | 686 | 687 | templateContent 688 | /t/* 689 | 690 | 691 | 692 | guestTemplateContent 693 | /guestTemplate/* 694 | 695 | 696 | 697 | guestTemplateContent 698 | /gt/* 699 | 700 | 701 | 702 | externalAccess 703 | /navigate/* 704 | 705 | 706 | 707 | externalAccess 708 | /n/* 709 | 710 | 711 | 712 | commandServlet 713 | /command/* 714 | 715 | 716 | 717 | commandServlet 718 | /c/* 719 | 720 | 721 | 722 | ajaxServlet 723 | /ajax/* 724 | 725 | 726 | 727 | axis 728 | /soapapi/* 729 | 730 | 731 | 732 | CXFServlet 733 | /cmis/* 734 | 735 | 736 | 737 | WebDAV 738 | /webdav/* 739 | 740 | 741 | 742 | apiServlet 743 | /service/* 744 | 745 | 746 | 747 | apiServlet 748 | /s/* 749 | 750 | 751 | 752 | wcapiServlet 753 | /wcservice/* 754 | 755 | 756 | 757 | wcapiServlet 758 | /wcs/* 759 | 760 | 761 | 762 | portalapiServlet 763 | /168service/* 764 | 765 | 766 | 767 | portalapiServlet 768 | /168s/* 769 | 770 | 771 | 772 | facebookServlet 773 | /facebook/* 774 | 775 | 776 | 777 | facebookServlet 778 | /fb/* 779 | 780 | 781 | 782 | fbapiServlet 783 | /fbservice/* 784 | 785 | 786 | 787 | fbapiServlet 788 | /fbs/* 789 | 790 | 791 | 792 | proxyServlet 793 | /proxy 794 | 795 | 796 | 797 | JBPMDeployProcessServlet 798 | /jbpm/deployprocess 799 | 800 | 801 | 802 | workflowDefinitionImageServlet 803 | /workflowdefinitionimage/* 804 | 805 | 806 | 807 | CMISFileShareServlet 808 | /cmisbrowse 809 | 810 | 811 | 812 | cmisws10 813 | /cmisws/* 814 | 815 | 816 | 817 | cmisatom10 818 | /cmisatom/* 819 | 820 | 821 | 822 | cmisbrowser 823 | /cmisbrowser/* 824 | 825 | 826 | 827 | publicapiServlet 828 | /api/* 829 | 830 | 831 | 832 | 838 | 839 | 840 | 841 | 842 | 60 843 | 844 | 845 | 846 | index.jsp 847 | 848 | 849 | 850 | java.lang.Exception 851 | /jsp/error.jsp 852 | 853 | 854 | 855 | The Alfresco database connection 856 | jdbc/dataSource 857 | javax.sql.DataSource 858 | Container 859 | Unshareable 860 | 861 | 862 | 863 | 933 | 934 | 935 | 936 | A flag that globally enables or disables startup of the major Alfresco subsystems. 937 | properties/startup.enable 938 | true 939 | java.lang.Boolean 940 | 941 | 942 | 943 | The filesystem directory below which content and index data is stored. Should be on a shared disk 944 | if this is a clustered installation. 945 | properties/dir.root 946 | 947 | java.lang.String 948 | 949 | 950 | 951 | The fully qualified name of a org.hibernate.dialect.Dialect subclass that allows Hibernate to 952 | generate SQL optimized for a particular relational database. Choose from org.hibernate.dialect.DerbyDialect, 953 | org.hibernate.dialect.MySQLInnoDBDialect, 954 | org.alfresco.repo.domain.hibernate.dialect.AlfrescoOracle9Dialect, 955 | org.alfresco.repo.domain.hibernate.dialect.AlfrescoSybaseAnywhereDialect, 956 | org.alfresco.repo.domain.hibernate.dialect.AlfrescoSQLServerDialect, org.hibernate.dialect.PostgreSQLDialect 957 | properties/hibernate.dialect 958 | 959 | java.lang.String 960 | 961 | 962 | 963 | Mapping from tokens in Hibernate queries to SQL tokens. For PostgreSQL, set this to "true 964 | TRUE, false FALSE". 965 | properties/hibernate.query.substitutions 966 | 967 | java.lang.String 968 | 969 | 970 | 971 | Enable use of JDBC3 PreparedStatement.getGeneratedKeys() to retrieve natively generated keys 972 | after insert. Requires JDBC3+ driver. Set to false if your driver has problems with the Hibernate identifier 973 | generators. By default, tries to determine the driver capabilities using connection metadata. 974 | properties/hibernate.jdbc.use_get_generated_keys 975 | 976 | java.lang.String 977 | 978 | 979 | 980 | Qualify unqualified table names with the given schema/tablespace in generated SQL. It may be 981 | necessary to set this when the target database has more than one schema. 982 | properties/hibernate.default_schema 983 | 984 | java.lang.String 985 | 986 | 987 | 988 | -------------------------------------------------------------------------------- /provisioning/roles/alfresco/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Download alfresco community 3 | shell: 'wget http://dl.alfresco.com/release/community/{{ alfresco_version }}-build-{{ alfresco_build }}/alfresco-community-{{ alfresco_version }}.zip 4 | -O /tmp/alfresco-community-{{ alfresco_version }}.zip creates=/tmp/alfresco-community-{{ alfresco_version }}.zip' 5 | register: alfresco_downloaded 6 | 7 | - name: Extract alfresco 8 | command: unzip -o /tmp/alfresco-community-{{ alfresco_version }}.zip -d /tmp/alfresco/ 9 | register: alfresco_extracted 10 | when: alfresco_downloaded|changed 11 | 12 | - name: Install alfresco to tomcat 13 | shell: cp -rf /tmp/alfresco/web-server/* {{ alfresco_user_home }}/tomcat/ 14 | when: alfresco_extracted|changed 15 | 16 | - name: Install alfresco bin, licenses and readme 17 | shell: cp -rf /tmp/alfresco/bin /tmp/alfresco/licenses /tmp/alfresco/README.txt {{ alfresco_user_home }}/ 18 | when: alfresco_extracted|changed 19 | 20 | - name: Cleanup alfresco unzipped 21 | file: path=/tmp/alfresco state=absent 22 | when: alfresco_extracted|changed 23 | 24 | - name: Create alfresco alf_data directory 25 | file: path={{ alfresco_user_home }}/alf_data state=directory owner={{ alfresco_user }} group={{ alfresco_group }} 26 | when: alfresco_extracted|changed 27 | 28 | - name: Create alfresco amp directory 29 | file: path={{ alfresco_user_home }}/amps state=directory owner={{ alfresco_user }} group={{ alfresco_group }} 30 | when: alfresco_extracted|changed 31 | 32 | - name: Create alfresco amp_share directory 33 | file: path={{ alfresco_user_home }}/amps_share state=directory owner={{ alfresco_user }} group={{ alfresco_group }} 34 | when: alfresco_extracted|changed 35 | 36 | - name: Create alfresco log directory 37 | file: path={{ alfresco_log_home }} state=directory owner={{ alfresco_user }} group={{ alfresco_group }} 38 | when: alfresco_extracted|changed 39 | 40 | - name: Install libreoffice startup script 41 | copy: src=start_oo.sh dest={{ alfresco_user_home }}/bin/start_oo.sh owner={{ alfresco_user }} group={{ alfresco_group }} mode=0755 42 | when: alfresco_extracted|changed 43 | 44 | - name: Install alfresco startup script 45 | template: src=alfresco.sh dest={{ alfresco_user_home }}/bin/alfresco.sh owner={{ alfresco_user }} group={{ alfresco_group }} mode=0755 backup=yes 46 | when: alfresco_extracted|changed 47 | 48 | - name: Install alfresco init script 49 | template: src=alfresco dest=/etc/init.d/alfresco owner=root group=root mode=0755 50 | when: alfresco_extracted|changed 51 | 52 | - name: Install alfresco global configuration 53 | template: src=alfresco-global.properties dest={{ alfresco_user_home }}/tomcat/shared/classes/alfresco-global.properties owner={{ alfresco_user }} group={{ alfresco_group }} mode=0644 backup=yes 54 | when: alfresco_extracted|changed 55 | 56 | - name: Install alfresco logging configuration 57 | template: src=custom-log4j.properties dest={{ alfresco_user_home }}/tomcat/shared/classes/alfresco/extension/custom-log4j.properties owner={{ alfresco_user }} group={{ alfresco_group }} mode=0644 58 | when: alfresco_extracted|changed 59 | 60 | - name: Set alfresco file owner 61 | shell: chown -R {{ alfresco_user }}:{{ alfresco_group }} {{ alfresco_user_home }} && chown -R {{ alfresco_user }}:{{ alfresco_group }} {{ alfresco_user_home }}/tomcat/ 62 | when: alfresco_extracted|changed 63 | 64 | - name: Start alfresco server 65 | service: name=alfresco state=started 66 | when: alfresco_extracted|changed 67 | 68 | - name: Wait for alfresco war deploy 69 | wait_for: path=/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/web.xml 70 | when: alfresco_extracted|changed 71 | 72 | - name: Relax security constraint for solr http comunication 73 | copy: src=web.xml dest={{ alfresco_user_home }}/tomcat/webapps/alfresco/WEB-INF/web.xml owner={{ alfresco_user }} group={{ alfresco_group }} mode=0644 74 | when: alfresco_extracted|changed 75 | -------------------------------------------------------------------------------- /provisioning/roles/alfresco/templates/alfresco: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | ALFRESCO_SCRIPT="{{ alfresco_user_home }}/bin/alfresco.sh" 4 | 5 | if [ "$1" = "start" ]; then 6 | su - {{ alfresco_user }} "${ALFRESCO_SCRIPT}" "start" 7 | elif [ "$1" = "stop" ]; then 8 | su - {{ alfresco_user }} "${ALFRESCO_SCRIPT}" "stop" 9 | elif [ "$1" = "restart" ]; then 10 | su - {{ alfresco_user }} "${ALFRESCO_SCRIPT}" "stop" 11 | su - {{ alfresco_user}} "${ALFRESCO_SCRIPT}" "start" 12 | else 13 | echo "Usage: /etc/init.d/alfresco [start|stop|restart]" 14 | fi 15 | -------------------------------------------------------------------------------- /provisioning/roles/alfresco/templates/alfresco-global.properties: -------------------------------------------------------------------------------- 1 | ############################### 2 | ## Common Alfresco Properties # 3 | ############################### 4 | 5 | authentication.chain=alfrescoNtlm1:alfrescoNtlm 6 | alfresco.rmi.services.host=0.0.0.0 7 | 8 | # 9 | # File locations 10 | #------------- 11 | dir.root={{ alfresco_data_home }}/alf_data 12 | 13 | # 14 | # Database 15 | #------------- 16 | db.username={{ alfresco_db_user }} 17 | db.password={{ alfresco_db_password }} 18 | db.schema.update=true 19 | {% if alfresco_db == 'mysql' %} 20 | db.driver=com.mysql.jdbc.Driver 21 | db.url=jdbc:mysql://{{ alfresco_db_host }}:3306/{{ alfresco_db_name }} 22 | {% elif alfresco_db == 'postgresql'%} 23 | db.driver=org.postgresql.Driver 24 | db.url=jdbc:postgresql://{{ alfresco_db_host }}:5432/{{ alfresco_db_name }} 25 | {% endif %} 26 | 27 | # 28 | # External locations 29 | #------------- 30 | ooo.exe=/usr/bin/soffice 31 | ooo.enabled=true 32 | jodconverter.officeHome=/usr/lib64/libreoffice 33 | jodconverter.portNumbers=8100 34 | jodconverter.enabled=false 35 | img.root=/usr/share/doc/ImageMagick-{{ imagemagick_version }} 36 | img.exe=/usr/bin/convert 37 | swf.exe=/usr/bin/pdf2swf 38 | 39 | # 40 | # Index 41 | #------------- 42 | index.subsystem.name={{ alfresco_indexing }} 43 | {% if alfresco_indexing == 'lucene' %} 44 | index.recovery.mode={{ index_recovery_mode }} 45 | {% elif alfresco_indexing == 'solr' %} 46 | solr.host={{- solr_host }} 47 | solr.port={{- solr_port }} 48 | solr.secureComms=none 49 | {% endif %} 50 | -------------------------------------------------------------------------------- /provisioning/roles/alfresco/templates/alfresco.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | # Start or stop Alfresco server 4 | 5 | # Set the following to where Tomcat is installed 6 | ALF_HOME={{ alfresco_user_home }} 7 | cd "$ALF_HOME" 8 | APPSERVER="${ALF_HOME}/tomcat" 9 | export CATALINA_HOME="$APPSERVER" 10 | 11 | # Set any default JVM values 12 | export JAVA_OPTS='{{ java_opts }}' 13 | export JAVA_OPTS="${JAVA_OPTS} -Dalfresco.home=${ALF_HOME} -Dcom.sun.management.jmxremote" 14 | 15 | if [ "$1" = "start" ]; then 16 | "${APPSERVER}/bin/startup.sh" 17 | if [ -r ./start_oo.sh ]; then 18 | "${ALF_HOME}/bin/start_oo.sh" 19 | fi 20 | elif [ "$1" = "stop" ]; then 21 | "${APPSERVER}/bin/shutdown.sh" 22 | killall -u alfresco java 23 | killall -u alfresco soffice.bin 24 | fi 25 | -------------------------------------------------------------------------------- /provisioning/roles/alfresco/templates/custom-log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to error 2 | log4j.rootLogger=error, Console, File 3 | 4 | ###### Console appender definition ####### 5 | 6 | # All outputs currently set to be a ConsoleAppender. 7 | log4j.appender.Console=org.apache.log4j.ConsoleAppender 8 | log4j.appender.Console.layout=org.apache.log4j.PatternLayout 9 | 10 | # use log4j NDC to replace %x with tenant domain / username 11 | log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n 12 | #log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n 13 | 14 | ###### File appender definition ####### 15 | log4j.appender.File=org.apache.log4j.DailyRollingFileAppender 16 | log4j.appender.File.File={{ alfresco_log_home }}/alfresco.log 17 | log4j.appender.File.Append=true 18 | log4j.appender.File.DatePattern='.'yyyy-MM-dd 19 | log4j.appender.File.layout=org.apache.log4j.PatternLayout 20 | log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n 21 | 22 | ###### Hibernate specific appender definition ####### 23 | #log4j.appender.file=org.apache.log4j.FileAppender 24 | #log4j.appender.file.File=hibernate.log 25 | #log4j.appender.file.layout=org.apache.log4j.PatternLayout 26 | #log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n 27 | 28 | ###### Log level overrides ####### 29 | 30 | # Commented-in loggers will be exposed as JMX MBeans (refer to org.alfresco.repo.admin.Log4JHierarchyInit) 31 | # Hence, generally useful loggers should be listed with at least ERROR level to allow simple runtime 32 | # control of the level via a suitable JMX Console. Also, any other loggers can be added transiently via 33 | # Log4j addLoggerMBean as long as the logger exists and has been loaded. 34 | 35 | # Hibernate 36 | log4j.logger.org.hibernate=error 37 | log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal 38 | log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=fatal 39 | log4j.logger.org.hibernate.type=warn 40 | log4j.logger.org.hibernate.cfg.SettingsFactory=warn 41 | 42 | # Spring 43 | log4j.logger.org.springframework=warn 44 | # Turn off Spring remoting warnings that should really be info or debug. 45 | log4j.logger.org.springframework.remoting.support=error 46 | log4j.logger.org.springframework.util=error 47 | 48 | # Axis/WSS4J 49 | log4j.logger.org.apache.axis=info 50 | log4j.logger.org.apache.ws=info 51 | 52 | # CXF 53 | log4j.logger.org.apache.cxf=error 54 | 55 | # MyFaces 56 | log4j.logger.org.apache.myfaces.util.DebugUtils=info 57 | log4j.logger.org.apache.myfaces.el.VariableResolverImpl=error 58 | log4j.logger.org.apache.myfaces.application.jsp.JspViewHandlerImpl=error 59 | log4j.logger.org.apache.myfaces.taglib=error 60 | 61 | # OpenOfficeConnection 62 | log4j.logger.net.sf.jooreports.openoffice.connection=fatal 63 | 64 | # log prepared statement cache activity ### 65 | log4j.logger.org.hibernate.ps.PreparedStatementCache=info 66 | 67 | # Alfresco 68 | log4j.logger.org.alfresco=error 69 | log4j.logger.org.alfresco.repo.admin=info 70 | log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn 71 | log4j.logger.org.alfresco.repo.model.filefolder=warn 72 | log4j.logger.org.alfresco.repo.tenant=info 73 | log4j.logger.org.alfresco.repo.avm=info 74 | log4j.logger.org.alfresco.config=warn 75 | log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn 76 | log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn 77 | log4j.logger.org.alfresco.repo.management.subsystems=warn 78 | log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory=info 79 | log4j.logger.org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext=warn 80 | log4j.logger.org.alfresco.repo.security.sync=info 81 | log4j.logger.org.alfresco.repo.security.person=info 82 | 83 | log4j.logger.org.alfresco.sample=info 84 | log4j.logger.org.alfresco.web=info 85 | #log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug 86 | #log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug 87 | #log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug 88 | #log4j.logger.org.alfresco.web.bean.clipboard=debug 89 | log4j.logger.org.alfresco.repo.webservice=info 90 | log4j.logger.org.alfresco.service.descriptor.DescriptorService=info 91 | #log4j.logger.org.alfresco.web.page=debug 92 | 93 | log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error 94 | #log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info 95 | 96 | log4j.logger.org.alfresco.web.ui.common.Utils=error 97 | #log4j.logger.org.alfresco.web.ui.common.Utils=info 98 | 99 | log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info 100 | log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info 101 | 102 | # Specific patches 103 | log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info 104 | log4j.logger.org.alfresco.repo.version.VersionMigrator=info 105 | log4j.logger.org.alfresco.repo.admin.patch.impl.ResetWCMToGroupBasedPermissionsPatch=info 106 | 107 | log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info 108 | log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info 109 | log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info 110 | log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn 111 | log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn 112 | log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info 113 | log4j.logger.org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent=info 114 | log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info 115 | log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn 116 | log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn 117 | log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn 118 | log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn 119 | log4j.logger.org.alfresco.util.AbstractTriggerBean=warn 120 | log4j.logger.org.alfresco.enterprise.repo.cluster=info 121 | log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn 122 | 123 | #log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug 124 | 125 | log4j.logger.org.alfresco.repo.workflow=info 126 | 127 | # CIFS server debugging 128 | log4j.logger.org.alfresco.smb.protocol=error 129 | #log4j.logger.org.alfresco.smb.protocol.auth=debug 130 | #log4j.logger.org.alfresco.acegi=debug 131 | 132 | # FTP server debugging 133 | log4j.logger.org.alfresco.ftp.protocol=error 134 | #log4j.logger.org.alfresco.ftp.server=debug 135 | 136 | # WebDAV debugging 137 | #log4j.logger.org.alfresco.webdav.protocol=debug 138 | log4j.logger.org.alfresco.webdav.protocol=error 139 | 140 | # NTLM servlet filters 141 | #log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug 142 | #log4j.logger.org.alfresco.repo.webdav.auth.NTLMAuthenticationFilter=debug 143 | 144 | # Kerberos servlet filters 145 | #log4j.logger.org.alfresco.web.app.servlet.KerberosAuthenticationFilter=debug 146 | #log4j.logger.org.alfresco.repo.webdav.auth.KerberosAuthenticationFilter=debug 147 | 148 | # File servers 149 | log4j.logger.org.alfresco.fileserver=warn 150 | 151 | # Repo filesystem debug logging 152 | #log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug 153 | 154 | # AVM filesystem debug logging 155 | #log4j.logger.org.alfresco.filesys.avm.AVMDiskDriver=debug 156 | 157 | # Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated 158 | log4j.logger.org.alfresco.repo.node.integrity=ERROR 159 | 160 | # Indexer debugging 161 | log4j.logger.org.alfresco.repo.search.Indexer=error 162 | #log4j.logger.org.alfresco.repo.search.Indexer=debug 163 | 164 | log4j.logger.org.alfresco.repo.search.impl.lucene.index=error 165 | log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl=warn 166 | #log4j.logger.org.alfresco.repo.search.impl.lucene.index=DEBUG 167 | 168 | # Audit debugging 169 | # log4j.logger.org.alfresco.repo.audit=DEBUG 170 | # log4j.logger.org.alfresco.repo.audit.model=DEBUG 171 | 172 | # Forms debugging 173 | # log4j.logger.org.alfresco.web.forms=debug 174 | # log4j.logger.org.chiba.xml.xforms=debug 175 | log4j.logger.org.alfresco.web.forms.xforms.XFormsBean=error 176 | log4j.logger.org.alfresco.web.forms.XSLTRenderingEngine=error 177 | 178 | # Property sheet and modelling debugging 179 | # change to error to hide the warnings about missing properties and associations 180 | log4j.logger.alfresco.missingProperties=warn 181 | log4j.logger.org.alfresco.web.ui.repo.component.property.UIChildAssociation=warn 182 | log4j.logger.org.alfresco.web.ui.repo.component.property.UIAssociation=warn 183 | #log4j.logger.org.alfresco.web.ui.repo.component.property=debug 184 | 185 | # Dictionary/Model debugging 186 | log4j.logger.org.alfresco.repo.dictionary=warn 187 | log4j.logger.org.alfresco.repo.dictionary.types.period=warn 188 | 189 | # Virtualization Server Registry 190 | log4j.logger.org.alfresco.mbeans.VirtServerRegistry=error 191 | 192 | # Spring context runtime property setter 193 | log4j.logger.org.alfresco.util.RuntimeSystemPropertiesSetter=info 194 | 195 | # Debugging options for clustering 196 | log4j.logger.org.alfresco.repo.content.ReplicatingContentStore=error 197 | log4j.logger.org.alfresco.repo.content.replication=error 198 | 199 | #log4j.logger.org.alfresco.repo.deploy.DeploymentServiceImpl=debug 200 | 201 | # Activity service 202 | log4j.logger.org.alfresco.repo.activities=warn 203 | 204 | # User usage tracking 205 | log4j.logger.org.alfresco.repo.usage=info 206 | 207 | # Sharepoint 208 | log4j.logger.org.alfresco.module.vti=info 209 | 210 | # Forms Engine 211 | log4j.logger.org.alfresco.repo.forms=info 212 | log4j.logger.org.alfresco.web.config.forms=info 213 | log4j.logger.org.alfresco.web.scripts.forms=info 214 | 215 | # CMIS 216 | log4j.logger.org.alfresco.opencmis=error 217 | log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error 218 | log4j.logger.org.alfresco.cmis=error 219 | log4j.logger.org.alfresco.cmis.dictionary=warn 220 | log4j.logger.org.apache.chemistry.opencmis=info 221 | 222 | # IMAP 223 | log4j.logger.org.alfresco.repo.imap=info 224 | 225 | # JBPM 226 | # Note: non-fatal errors (eg. logged during job execution) should be handled by Alfresco's retrying transaction handler 227 | log4j.logger.org.jbpm.graph.def.GraphElement=fatal 228 | 229 | #log4j.logger.org.alfresco.repo.googledocs=debug 230 | 231 | ###### Scripting ####### 232 | 233 | # Web Framework 234 | log4j.logger.org.springframework.extensions.webscripts=info 235 | log4j.logger.org.springframework.extensions.webscripts.ScriptLogger=warn 236 | log4j.logger.org.springframework.extensions.webscripts.ScriptDebugger=off 237 | 238 | # Repository 239 | log4j.logger.org.alfresco.repo.web.scripts=warn 240 | log4j.logger.org.alfresco.repo.web.scripts.BaseWebScriptTest=info 241 | log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=off 242 | log4j.logger.org.alfresco.repo.jscript=error 243 | log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn 244 | log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info 245 | 246 | log4j.logger.org.alfresco.repo.avm.actions=info 247 | 248 | # Bulk Filesystem Import Tool 249 | log4j.logger.org.alfresco.repo.bulkimport=warn 250 | 251 | # Freemarker 252 | # Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler 253 | log4j.logger.freemarker.runtime= 254 | 255 | # Metadata extraction 256 | log4j.logger.org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter=warn 257 | 258 | # Reduces PDFont error level due to ALF-7105 259 | log4j.logger.org.apache.pdfbox.pdmodel.font.PDSimpleFont=fatal 260 | log4j.logger.org.apache.pdfbox.pdmodel.font.PDFont=fatal 261 | log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal 262 | 263 | # no index support 264 | log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal 265 | log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal 266 | 267 | # lucene index warnings 268 | log4j.logger.org.alfresco.repo.search.impl.lucene.index.IndexInfo=warn 269 | 270 | -------------------------------------------------------------------------------- /provisioning/roles/common/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Add epel repo for byobu 3 | yum: name=http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm state=present 4 | 5 | - name: Add basic packages 6 | yum: state=latest name={{ item }} 7 | with_items: 8 | - wget 9 | - unzip 10 | - libselinux-python 11 | - python-psycopg2 12 | - MySQL-python 13 | - git 14 | - vim 15 | - byobu 16 | - htop 17 | - tree 18 | - multitail 19 | 20 | - name: Create alfresco group 21 | group: name={{ alfresco_group }} state=present 22 | 23 | - name: Create alfresco user 24 | user: name={{ alfresco_user }} home={{ alfresco_user_home }} uid={{ alfresco_uid }} shell=/bin/sh group={{ alfresco_group }} state=present 25 | 26 | - name: Create alfresco folder 27 | file: path={{ alfresco_user_home }} state=directory owner={{ alfresco_user }} group={{ alfresco_group }} mode=0770 28 | -------------------------------------------------------------------------------- /provisioning/roles/java/files/java_env.sh: -------------------------------------------------------------------------------- 1 | ## export JAVA_HOME JDK - JRE ## 2 | export JAVA_HOME=/usr/java/latest 3 | -------------------------------------------------------------------------------- /provisioning/roles/java/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Download JDK build and version 3 | shell: 'wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" 4 | "http://download.oracle.com/otn-pub/java/jdk/{{ java_version }}-{{ java_build }}/jdk-{{ java_version }}-linux-x{{ ansible_userspace_bits }}.rpm" 5 | -O /tmp/jdk-{{ java_version }}-linux-x{{ ansible_userspace_bits }}.rpm creates=/tmp/jdk-{{ java_version }}-linux-x{{ ansible_userspace_bits }}.rpm' 6 | register: jdk_downloaded 7 | 8 | - name: Install JDK RPM package 9 | yum: name=/tmp/jdk-{{ java_version }}-linux-x{{ ansible_userspace_bits }}.rpm state=present 10 | register: jdk_installed 11 | when: jdk_downloaded|changed 12 | 13 | - name: Set java link by latest 14 | command: alternatives --install /usr/bin/java java /usr/java/latest/bin/java 200000 15 | when: jdk_installed|changed 16 | 17 | - name: Set jar link by latest 18 | command: alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 200000 19 | when: jdk_installed|changed 20 | 21 | - name: Update profile JDK / JRE 22 | copy: src=java_env.sh dest=/etc/profile.d/java_env.sh 23 | when: jdk_installed|changed 24 | -------------------------------------------------------------------------------- /provisioning/roles/mysql/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install the mysql remote repo 3 | yum: name=http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm state=present 4 | 5 | - name: Install the mysql rpm from a remote repo 6 | yum: name=mysql-community-server state=present 7 | register: mysql_installed 8 | 9 | - name: Download mysql-java-connector 10 | shell: 'wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-{{ mysql_connector_version }}.tar.gz 11 | -O /tmp/mysql-connector-java-{{ mysql_connector_version }}.tar.gz creates=/tmp/mysql-connector-java-{{ mysql_connector_version }}.tar.gz' 12 | register: mysqlconnector_downloaded 13 | 14 | - name: Extract mysql-java-connector 15 | shell: 'tar xzf /tmp/mysql-connector-java-{{ mysql_connector_version }}.tar.gz -C /tmp' 16 | register: mysqlconnector_extracted 17 | when: mysqlconnector_downloaded|changed 18 | 19 | - name: Install mysql-java-connector 20 | shell: 'mv /tmp/mysql-connector-java-{{ mysql_connector_version }}/mysql-connector-java-{{ mysql_connector_version }}-bin.jar /opt/alfresco/tomcat/lib/ && chown alfresco:alfresco /opt/alfresco/tomcat/lib/mysql-connector-java-{{ mysql_connector_version }}-bin.jar' 21 | when: mysqlconnector_extracted|changed 22 | 23 | - name: Cleanup mysql-java-connector 24 | shell: 'rm -rf /tmp/mysql-connector-java-{{ mysql_connector_version }}' 25 | when: mysqlconnector_extracted|changed 26 | 27 | - name: Configure transaction isolation 28 | lineinfile: dest=/etc/my.cnf insertafter="sql-mode" line="transaction-isolation=READ-COMMITTED" 29 | 30 | - name: Start and enable the mysql service 31 | service: name=mysqld state=restarted enabled=yes 32 | when: mysql_installed|changed 33 | 34 | - name: Wait for the service up 35 | wait_for: port=3306 delay=30 36 | when: mysql_installed|changed 37 | 38 | - name: Update mysql root password for all root accounts 39 | mysql_user: name=root host={{ item }} password={{ mysql_root_db_pass }} 40 | with_items: 41 | - 127.0.0.1 42 | - ::1 43 | - localhost 44 | when: mysql_installed|changed 45 | 46 | - name: Create alfresco database 47 | mysql_db: login_user=root login_password={{ mysql_root_db_pass }} login_host={{ alfresco_db_host }} name={{ alfresco_db_name }} state=present 48 | 49 | - name: Create alfresco_user / roles 50 | mysql_user: login_user=root login_password={{ mysql_root_db_pass }} login_host={{ alfresco_db_host }} name={{ alfresco_db_user }} password={{ alfresco_db_password}} priv={{ alfresco_db_name }}.*:ALL state=present 51 | -------------------------------------------------------------------------------- /provisioning/roles/openjdk/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Add openjdk packages 3 | yum: name=java-1.7.0-openjdk state=present 4 | -------------------------------------------------------------------------------- /provisioning/roles/postgresql/files/pg_hba.conf: -------------------------------------------------------------------------------- 1 | # PostgreSQL Client Authentication Configuration File 2 | # =================================================== 3 | # 4 | # Refer to the "Client Authentication" section in the PostgreSQL 5 | # documentation for a complete description of this file. A short 6 | # synopsis follows. 7 | # 8 | # This file controls: which hosts are allowed to connect, how clients 9 | # are authenticated, which PostgreSQL user names they can use, which 10 | # databases they can access. Records take one of these forms: 11 | # 12 | # local DATABASE USER METHOD [OPTIONS] 13 | # host DATABASE USER ADDRESS METHOD [OPTIONS] 14 | # hostssl DATABASE USER ADDRESS METHOD [OPTIONS] 15 | # hostnossl DATABASE USER ADDRESS METHOD [OPTIONS] 16 | # 17 | # (The uppercase items must be replaced by actual values.) 18 | # 19 | # The first field is the connection type: "local" is a Unix-domain 20 | # socket, "host" is either a plain or SSL-encrypted TCP/IP socket, 21 | # "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a 22 | # plain TCP/IP socket. 23 | # 24 | # DATABASE can be "all", "sameuser", "samerole", "replication", a 25 | # database name, or a comma-separated list thereof. The "all" 26 | # keyword does not match "replication". Access to replication 27 | # must be enabled in a separate record (see example below). 28 | # 29 | # USER can be "all", a user name, a group name prefixed with "+", or a 30 | # comma-separated list thereof. In both the DATABASE and USER fields 31 | # you can also write a file name prefixed with "@" to include names 32 | # from a separate file. 33 | # 34 | # ADDRESS specifies the set of hosts the record matches. It can be a 35 | # host name, or it is made up of an IP address and a CIDR mask that is 36 | # an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that 37 | # specifies the number of significant bits in the mask. A host name 38 | # that starts with a dot (.) matches a suffix of the actual host name. 39 | # Alternatively, you can write an IP address and netmask in separate 40 | # columns to specify the set of hosts. Instead of a CIDR-address, you 41 | # can write "samehost" to match any of the server's own IP addresses, 42 | # or "samenet" to match any address in any subnet that the server is 43 | # directly connected to. 44 | # 45 | # METHOD can be "trust", "reject", "md5", "password", "gss", "sspi", 46 | # "krb5", "md5", "peer", "pam", "ldap", "radius" or "cert". Note that 47 | # "password" sends passwords in clear text; "md5" is preferred since 48 | # it sends encrypted passwords. 49 | # 50 | # OPTIONS are a set of options for the authentication in the format 51 | # NAME=VALUE. The available options depend on the different 52 | # authentication methods -- refer to the "Client Authentication" 53 | # section in the documentation for a list of which options are 54 | # available for which authentication methods. 55 | # 56 | # Database and user names containing spaces, commas, quotes and other 57 | # special characters must be quoted. Quoting one of the keywords 58 | # "all", "sameuser", "samerole" or "replication" makes the name lose 59 | # its special character, and just match a database or username with 60 | # that name. 61 | # 62 | # This file is read on server startup and when the postmaster receives 63 | # a SIGHUP signal. If you edit the file on a running system, you have 64 | # to SIGHUP the postmaster for the changes to take effect. You can 65 | # use "pg_ctl reload" to do that. 66 | 67 | # Put your actual configuration here 68 | # ---------------------------------- 69 | # 70 | # If you want to allow non-local connections, you need to add more 71 | # "host" records. In that case you will also need to make PostgreSQL 72 | # listen on a non-local interface via the listen_addresses 73 | # configuration parameter, or via the -i or -h command line switches. 74 | 75 | 76 | 77 | # TYPE DATABASE USER ADDRESS METHOD 78 | 79 | # "local" is for Unix domain socket connections only 80 | local all all peer 81 | # IPv4 local connections: 82 | host alfresco alfresco 127.0.0.1/32 md5 83 | host all all 127.0.0.1/32 ident 84 | # IPv6 local connections: 85 | host alfresco alfresco ::1/128 md5 86 | host all all ::1/128 ident 87 | # Allow replication connections from localhost, by a user with the 88 | # replication privilege. 89 | #local replication postgres peer 90 | #host replication postgres 127.0.0.1/32 md5 91 | #host replication postgres ::1/128 md5 92 | 93 | -------------------------------------------------------------------------------- /provisioning/roles/postgresql/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Install the postgresql remote repo 3 | yum: name=http://yum.postgresql.org/{{ postgresql_version }}/redhat/rhel-6-x86_64/pgdg-centos{{ postgresql_version|replace('.','') }}-{{ postgresql_version }}-{{ postgresql_build }}.noarch.rpm state=present 4 | 5 | - name: Install the postgresql rpm from a remote repo 6 | yum: name=postgresql{{ postgresql_version|replace('.','') }}-server state=present 7 | register: postgresql_installed 8 | 9 | - name: Init postgresql db 10 | command: service postgresql-{{ postgresql_version }} initdb –encoding=UNICODE creates=/var/lib/pgsql/data/postgresql.conf 11 | when: postgresql_installed|changed 12 | 13 | - name: Configure md5 authentication for user alfresco on db alfresco 14 | copy: src=pg_hba.conf dest=/var/lib/pgsql/{{ postgresql_version }}/data 15 | when: postgresql_installed|changed 16 | 17 | - name: Start and enable postsgres service 18 | service: name=postgresql-{{ postgresql_version }} state=restarted enabled=yes 19 | when: postgresql_installed|changed 20 | 21 | - name: Wait for the service up 22 | wait_for: port=5432 delay=30 23 | when: postgresql_installed|changed 24 | 25 | - name: Enable sudo for group wheel for postgres access 26 | lineinfile: 'dest=/etc/sudoers regexp="^%wheel ALL=NOPASSWD: ALL" line="%wheel ALL=(ALL) NOPASSWD: ALL"' 27 | when: postgresql_installed|changed 28 | 29 | - name: Create alfresco_user / roles 30 | postgresql_user: name={{ alfresco_db_user}} password={{ alfresco_db_password }} role_attr_flags=LOGIN state=present 31 | sudo_user: postgres 32 | when: postgresql_installed|changed 33 | 34 | - name: Create alfresco database 35 | postgresql_db: name={{ alfresco_db_name }} owner={{ alfresco_db_user }} state=present 36 | sudo_user: postgres 37 | when: postgresql_installed|changed 38 | -------------------------------------------------------------------------------- /provisioning/roles/solr/files/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 21 | 22 | 32 | 33 | 36 | 43 | 44 | 45 | 46 | SolrRequestFilter 47 | org.apache.solr.servlet.SolrDispatchFilter 48 | 63 | 69 | 70 | 71 | 72 | 82 | SolrRequestFilter 83 | /* 84 | 85 | 86 | 87 | 88 | 89 | SolrServer 90 | Solr 91 | Solr Server 92 | org.apache.solr.servlet.SolrServlet 93 | 1 94 | 95 | 96 | 97 | SolrUpdate 98 | SolrUpdate 99 | Solr Update Handler 100 | org.apache.solr.servlet.SolrUpdateServlet 101 | 2 102 | 103 | 104 | 105 | Logging 106 | org.apache.solr.servlet.LogLevelSelection 107 | 108 | 109 | 110 | 111 | ping 112 | /admin/ping.jsp 113 | 114 | 115 | 116 | SolrServer 117 | /select/* 118 | 119 | 120 | 121 | SolrUpdate 122 | /update/* 123 | 124 | 125 | 126 | Logging 127 | /admin/logging 128 | 129 | 130 | 131 | 132 | ping 133 | /admin/ping 134 | 135 | 136 | 137 | 138 | Logging 139 | /admin/logging.jsp 140 | 141 | 142 | 143 | .xsl 144 | 145 | application/xslt+xml 146 | 147 | 169 | 170 | -------------------------------------------------------------------------------- /provisioning/roles/solr/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Download solr community 3 | shell: 'wget http://dl.alfresco.com/release/community/{{ alfresco_version }}-build-{{ alfresco_build }}/alfresco-community-solr-{{ alfresco_version }}.zip 4 | -O /tmp/alfresco-community-solr-{{ alfresco_version }}.zip creates=/tmp/alfresco-community-solr-{{ alfresco_version }}.zip' 5 | register: alfresco_solr_downloaded 6 | 7 | - name: Extract alfresco solr 8 | command: unzip -o /tmp/alfresco-community-solr-{{ alfresco_version }}.zip -d /tmp/alfresco-solr/ 9 | register: alfresco_solr_extracted 10 | when: alfresco_solr_downloaded|changed 11 | 12 | - name: Create alfresco-solr directory 13 | file: path={{ alfresco_user_home }}/solr state=directory owner={{ alfresco_user }} group={{ alfresco_group }} 14 | when: alfresco_solr_extracted|changed 15 | 16 | - name: Install alfresco-solr to tomcat 17 | shell: cp -rf /tmp/alfresco-solr/* {{ alfresco_user_home }}/solr/ 18 | when: alfresco_solr_extracted|changed 19 | 20 | - name: Copy the context.xml file to tomcat 21 | template: src=solr.xml dest={{ alfresco_user_home }}/tomcat/conf/Catalina/localhost/solr.xml owner={{ alfresco_user }} group={{ alfresco_group }} mode=0644 22 | when: alfresco_solr_extracted|changed 23 | 24 | - name: Configure the solcores properties for workspace 25 | template: src=solrcore.properties dest={{ alfresco_user_home }}/solr/workspace-SpacesStore/conf/solrcore.properties owner={{ alfresco_user }} group={{ alfresco_group }} mode=0644 26 | when: alfresco_solr_extracted|changed 27 | 28 | - name: Configure the solcores properties for archive 29 | template: src=solrcore.properties dest={{ alfresco_user_home }}/solr/archive-SpacesStore/conf/solrcore.properties owner={{ alfresco_user }} group={{ alfresco_group }} mode=0644 30 | when: alfresco_solr_extracted|changed 31 | 32 | - name: Cleanup alfresco-solr unzipped 33 | file: path=/tmp/alfresco-solr state=absent 34 | when: alfresco_solr_extracted|changed 35 | 36 | - name: Set solr file permissions 37 | file: path={{ alfresco_user_home}}/solr owner={{ alfresco_user }} group={{ alfresco_group }} recurse=yes 38 | when: alfresco_solr_extracted|changed 39 | 40 | - name: Restart alfresco server 41 | service: name=alfresco state=restarted 42 | register: alfresco_solr_restarted 43 | when: alfresco_solr_extracted|changed 44 | 45 | - name: Wait for alfresco war deploy 46 | wait_for: path=/opt/alfresco/tomcat/webapps/solr/WEB-INF/web.xml 47 | when: alfresco_solr_extracted|changed 48 | 49 | - name: Relax security constraint for repo http comunication 50 | copy: src=web.xml dest={{ alfresco_user_home }}/tomcat/webapps/solr/WEB-INF/web.xml owner={{ alfresco_user }} group={{ alfresco_group }} mode=0644 51 | when: alfresco_solr_restarted|changed 52 | 53 | - name: Restart alfresco server 54 | service: name=alfresco state=restarted 55 | when: alfresco_solr_restarted|changed 56 | -------------------------------------------------------------------------------- /provisioning/roles/solr/templates/solr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /provisioning/roles/solr/templates/solrcore.properties: -------------------------------------------------------------------------------- 1 | # 2 | # solrcore.properties - used in solrconfig.xml 3 | # 4 | # data is in ${data.dir.root}/${data.dir.store} 5 | 6 | data.dir.root={{ alfresco_user_home }}/solr 7 | data.dir.store=workspace/SpacesStore 8 | enable.alfresco.tracking=true 9 | cache.alfresco.size=100 10 | max.field.length=2147483647 11 | 12 | 13 | # 14 | # Properties loaded during alfresco tracking 15 | # 16 | 17 | alfresco.host=localhost 18 | alfresco.port=8080 19 | alfresco.port.ssl=8443 20 | alfresco.baseUrl=/alfresco 21 | alfresco.cron=0/15 * * * * ? * 22 | alfresco.stores=workspace://SpacesStore 23 | #alfresco.index.transformContent=false 24 | #alfresco.ignore.datatype.1=d:content 25 | alfresco.lag=1000 26 | alfresco.hole.retention=3600000 27 | # alfresco.hole.check.after is not used yet 28 | # It will reduce the hole checking load 29 | alfresco.hole.check.after=300000 30 | alfresco.batch.count=1000 31 | 32 | # encryption 33 | 34 | # none, https 35 | alfresco.secureComms=none 36 | 37 | # ssl 38 | alfresco.encryption.ssl.keystore.type=JCEKS 39 | alfresco.encryption.ssl.keystore.provider= 40 | alfresco.encryption.ssl.keystore.location=ssl.repo.client.keystore 41 | alfresco.encryption.ssl.keystore.passwordFileLocation=ssl-keystore-passwords.properties 42 | alfresco.encryption.ssl.truststore.type=JCEKS 43 | alfresco.encryption.ssl.truststore.provider= 44 | alfresco.encryption.ssl.truststore.location=ssl.repo.client.truststore 45 | alfresco.encryption.ssl.truststore.passwordFileLocation=ssl-truststore-passwords.properties 46 | 47 | # Tracking 48 | 49 | alfresco.enableMultiThreadedTracking=true 50 | alfresco.corePoolSize=3 51 | alfresco.maximumPoolSize=-1 52 | alfresco.keepAliveTime=120 53 | alfresco.threadPriority=5 54 | alfresco.threadDaemon=true 55 | alfresco.workQueueSize=-1 56 | 57 | # HTTP Client 58 | 59 | alfresco.maxTotalConnections=40 60 | alfresco.maxHostConnections=40 61 | alfresco.socketTimeout=60000 62 | 63 | # SOLR caching 64 | 65 | solr.filterCache.size=64 66 | solr.filterCache.initialSize=64 67 | solr.queryResultCache.size=1024 68 | solr.queryResultCache.initialSize=1024 69 | solr.documentCache.size=64 70 | solr.documentCache.initialSize=64 71 | solr.queryResultMaxDocsCached=2000 72 | 73 | solr.authorityCache.size=64 74 | solr.authorityCache.initialSize=64 75 | solr.pathCache.size=64 76 | solr.pathCache.initialSize=64 77 | 78 | solr.readerToAclIdsCache.size=64 79 | solr.readerToAclIdsCache.initialSize=64 80 | 81 | # SOLR 82 | 83 | solr.maxBooleanClauses=10000 84 | 85 | # Batch fetch 86 | 87 | alfresco.transactionDocsBatchSize=100 88 | alfresco.changeSetAclsBatchSize=100 89 | alfresco.aclBatchSize=10 90 | 91 | # Warming 92 | 93 | solr.filterCache.autowarmCount=128 94 | solr.authorityCache.autowarmCount=0 95 | solr.pathCache.autowarmCount=128 96 | 97 | solr.queryResultWindowSize=200 98 | 99 | -------------------------------------------------------------------------------- /provisioning/roles/tomcat/files/tomcat.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # chkconfig: 345 99 28 4 | # description: Starts/Stops Apache Tomcat 5 | # 6 | # Tomcat 7 start/stop/status script 7 | # Forked from: https://gist.github.com/valotas/1000094 8 | # @author: Miglen Evlogiev 9 | # 10 | # Release updates: 11 | # Updated method for gathering pid of the current proccess 12 | # Added usage of CATALINA_BASE 13 | # Added coloring and additional status 14 | # Added check for existence of the tomcat user 15 | # 16 | 17 | #Location of JAVA_HOME (bin files) 18 | export JAVA_HOME={{ java_home }}/bin 19 | 20 | #Add Java binary files to PATH 21 | export PATH=$JAVA_HOME/bin:$PATH 22 | 23 | #CATALINA_HOME is the location of the bin files of Tomcat 24 | export CATALINA_HOME={{ catalina_home }} 25 | 26 | #CATALINA_BASE is the location of the configuration files of this instance of Tomcat 27 | export CATALINA_BASE={{ catalina_base }} 28 | 29 | #TOMCAT_USER is the default user of tomcat 30 | export TOMCAT_USER={{ tomcat_user }} 31 | 32 | #TOMCAT_USAGE is the message if this script is called without any options 33 | TOMCAT_USAGE="Usage: $0 {\e[00;32mstart\e[00m|\e[00;31mstop\e[00m|\e[00;32mstatus\e[00m|\e[00;31mrestart\e[00m}" 34 | 35 | #SHUTDOWN_WAIT is wait time in seconds for java proccess to stop 36 | SHUTDOWN_WAIT=20 37 | 38 | tomcat_pid() { 39 | echo `ps -fe | grep $CATALINA_BASE | grep -v grep | tr -s " "|cut -d" " -f2` 40 | } 41 | 42 | start() { 43 | pid=$(tomcat_pid) 44 | if [ -n "$pid" ] 45 | then 46 | echo -e "\e[00;31mTomcat is already running (pid: $pid)\e[00m" 47 | else 48 | # Start tomcat 49 | echo -e "\e[00;32mStarting tomcat\e[00m" 50 | #ulimit -n 100000 51 | #umask 007 52 | #/bin/su -p -s /bin/sh tomcat 53 | if [ `user_exists $TOMCAT_USER` = "1" ] 54 | then 55 | su $TOMCAT_USER -c $CATALINA_HOME/bin/startup.sh 56 | else 57 | sh $CATALINA_HOME/bin/startup.sh 58 | fi 59 | status 60 | fi 61 | return 0 62 | } 63 | 64 | status(){ 65 | pid=$(tomcat_pid) 66 | if [ -n "$pid" ]; then echo -e "\e[00;32mTomcat is running with pid: $pid\e[00m" 67 | else echo -e "\e[00;31mTomcat is not running\e[00m" 68 | fi 69 | } 70 | 71 | stop() { 72 | pid=$(tomcat_pid) 73 | if [ -n "$pid" ] 74 | then 75 | echo -e "\e[00;31mStoping Tomcat\e[00m" 76 | #/bin/su -p -s /bin/sh tomcat 77 | sh $CATALINA_HOME/bin/shutdown.sh 78 | 79 | let kwait=$SHUTDOWN_WAIT 80 | count=0; 81 | until [ `ps -p $pid | grep -c $pid` = '0' ] || [ $count -gt $kwait ] 82 | do 83 | echo -n -e "\n\e[00;31mwaiting for processes to exit\e[00m"; 84 | sleep 1 85 | let count=$count+1; 86 | done 87 | 88 | if [ $count -gt $kwait ]; then 89 | echo -n -e "\n\e[00;31mkilling processes which didn't stop after $SHUTDOWN_WAIT seconds\e[00m" 90 | kill -9 $pid 91 | fi 92 | else 93 | echo -e "\e[00;31mTomcat is not running\e[00m" 94 | fi 95 | 96 | return 0 97 | } 98 | 99 | user_exists(){ 100 | if id -u $1 >/dev/null 2>&1; then 101 | echo "1" 102 | else 103 | echo "0" 104 | fi 105 | } 106 | 107 | case $1 in 108 | 109 | start) 110 | start 111 | ;; 112 | 113 | stop) 114 | stop 115 | ;; 116 | 117 | restart) 118 | stop 119 | start 120 | ;; 121 | 122 | status) 123 | status 124 | 125 | ;; 126 | 127 | *) 128 | echo -e $TOMCAT_USAGE 129 | ;; 130 | esac 131 | exit 0 132 | -------------------------------------------------------------------------------- /provisioning/roles/tomcat/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Download tomcat 3 | shell: 'wget http://archive.apache.org/dist/tomcat/tomcat-{{ tomcat_version|first() }}/v{{ tomcat_version }}/bin/apache-tomcat-{{ tomcat_version }}.tar.gz 4 | -O /tmp/apache-tomcat-{{ tomcat_version }}.tar.gz creates=/tmp/apache-tomcat-{{ tomcat_version }}.tar.gz' 5 | register: tomcat_downloaded 6 | 7 | - name: Extract tomcat 8 | shell: 'tar xzf /tmp/apache-tomcat-{{ tomcat_version }}.tar.gz -C /opt/' 9 | register: tomcat_extracted 10 | when: tomcat_downloaded|changed 11 | 12 | - name: Create tomcat symlink 13 | file: path={{ alfresco_user_home }}/tomcat state=link src=/opt/apache-tomcat-{{ tomcat_version }} 14 | when: tomcat_extracted|changed 15 | 16 | - name: Set shared loader 17 | lineinfile: dest=/opt/apache-tomcat-{{ tomcat_version }}/conf/catalina.properties regexp="^shared.loader=" line="shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar" 18 | 19 | - name: Set URIEncoding 20 | lineinfile: dest=/opt/apache-tomcat-{{ tomcat_version }}/conf/server.xml insertafter="^\s{4}" 24 | -------------------------------------------------------------------------------- /provisioning/roles/tools/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: add atrpms repo for ffmpeg 3 | yum: name=http://dl.atrpms.net/el6-x86_64/atrpms/stable/atrpms-repo-6-7.el6.x86_64.rpm state=present 4 | 5 | - name: add rpmforge for swftools 6 | yum: name=http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm state=present 7 | 8 | - name: add tools package 9 | yum: state=latest name={{ item }} 10 | with_items: 11 | - ImageMagick 12 | - ffmpeg 13 | - libreoffice 14 | - libreoffice-headless 15 | - swftools 16 | -------------------------------------------------------------------------------- /provisioning/site.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | sudo: True 4 | roles: 5 | - { role: common, tags: ['alfresco'] } 6 | - { role: openjdk, when: "java_type == 'open'"} 7 | - { role: java, when: "java_type == 'sun'"} 8 | - { role: tomcat, tags: ['app'] } 9 | - { role: mysql, when: "alfresco_db == 'mysql'", tags: ['db'] } 10 | - {role: postgresql, when: "alfresco_db == 'postgresql'"} 11 | - { role: tools, tags: ['alfresco'] } 12 | - { role: alfresco, tags: ['app', 'alfresco'] } 13 | - { role: solr, when: "alfresco_indexing == 'solr'" } 14 | --------------------------------------------------------------------------------